Owner: AdvancedQTP URL:http://advancedqtp.com Join Date: Tue, 18 Sep 2007 16:01:10 -0500 Rating:0 Site Description: Learn advanced programming in Quicktest Professional (QTP) and VBScript Site statistics:Click here
FTP Your Scripts! 2007-11-06 09:30:18 Own the world of FTP with this new article by Dani Vainstein!
FTP (File Transfer Protocol) is used to transfer data from one computer to another over the internet, or any other network. This protocol is regarded as professional and as one that can do the "heavy lifting" needed in business critical environments and cross-server processes. As a result, a lot of organizations embed FTP into their IT backbone, so it's only a matter of time before you'll run into a project that require you to automate FTP as part of the end-to-end project tests.
The article explains the theoretical background of the FTP protocol, as well as the methods to control and utilize it. As you go through the article, you'll learn how to use inner-windows functions through your QTP script (via the Extern.Declare VBScript interface), which will enable you to automate all the core functions of the FTP protocol.
The article provides you with practical QTP code-snippets and examples that will enable you to qu Read more:Scripts
A new Knowledge-Base section - First Steps 2007-11-21 04:21:34 We are very happy to announce a new Knowledge
-Base section - First
Steps!
In light of the new user registration system, we've found out that a lot of our readers are "first-steppers". While we are very proud of our high-level articles and projects, we understand now that they are less accessible to some of our readers.
While AdvancedQTP will continue to promote and teach advanced programming in QTP, we will do our best to support first-steppers as well, andnurture the automation community. This is why we've open a new section in our knowledge-base - First Steps.
The First Steps section will house tutorials, articles and presentations which are meant for those of you who are just getting familiar with the world of QTP and VBScript. Make sure you monitor the section closely (or subscribe to our updates), as new material will be updated on an ongoing basis.
We are already proud to present the very first addition to the First Steps section - a unique VBScript tutorial.
The tutor
Announcing the Flight Reservation Project 2007-12-07 08:00:50 We are very happy to annouce a new addition to our First-Steps section - the FlightReservationProject
(FR project).
This project is much more than just another tutorial or framework, is like an online course that simulates a "real-world" automation-testing project. it offers a unique opportunity to gain invaluable real-world projects experience in QTP.
While most tutorials present a few isolated technical dilemmas that have in most case a little to do with managing automation projects. The FR project takes the extra step and involves you with everything related to carrying out a successful automation project, from end-to-end. Along the way, you will learn a great deal about the different types of testing (Regression, Negative, Sanity, etc.) coverage of system requirements, and transforming them into code.
You can learn more about the FR project, and catch the recent updates at its homepage,
The first update to the project will be uploaded in a couple of weeks, and on a weekly
Two new QTP job opportunities are now available 2007-12-02 21:42:23 As part of out continuous effort to improve our service to you, we are proud to bring you two new QTP job opportunities - In Israel, Tel-Aviv and the U.S.A., Cambridge, Massachusetts.
You can find the details here.
More QTP job opportunities will be added over time. Enjoy,
AdvancedQTP staff. Read more:available
A new article - The Factory Pattern 2007-12-12 04:41:48 A new Design Pattern
s article is now available - The Factory
Pattern.
We continue our tour of Design Patterns with another basic pattern – the Factory (or Abstract Factory). Like the Singleton Pattern, the Factory Pattern is a creational pattern, which means it is used to create or initialize a certain object. The article will explore how the Factory Pattern can be used to further centralize our control over the objects we create and maintain in our scripts; and the benefits that come with a central point of access and control.
The article covers the roots of the Factory Pattern, as well as its various uses and associated techniques. The Factory Pattern is so rich and powerful, that the article will even include real-world examples from the ReporterManager project.
So go right ahead and proceed to the article.
Enjoy.
Update - PDM.DLL dramatically improves QTP’s Debug capabilities 2008-03-07 23:25:23 Update: As reviewed here, installing Visual Studio 2008 will enhance QTP's debug capabilities. Sometimes, however, installing VS2008 may be a non-option, as it radically changes the test-machine you're working on. Luckly, as Motti has noted on the original article, you don't really need to install VS2008, but only a small DLL called PDM.DLL.
You simply obtain the DLL (by downloading VS2008 express or via any other source), and copy it to "C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG" (make sure to make a backup of the original DLL first!). Now, write the following command in the RUN menu (or in CMD) :
RegSVR32 C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\pdm.dll
You may need to restart the machine, and presto! Upgraded debugging capabilities, without the tires Read more:Update
, Debug
The undocumented DeviceReplay 2008-03-04 00:30:50 HP's QTP has a mostly undocumented ace up its sleeve - the Device.Replay object. It can be used to perform a wide variety of tasks, from clicking the mouse to sending a keyboard input to the active window.
In the following article, Dani covers all the major features of the Device.Replay object, while providing ample examples and code-snippets to demonstrate their usage. You can't afford to miss this extensive documentation to one of the most useful tools you never knew QTP had!
So go right ahead and download the article!
Implementing a stack using a dictionary 2008-02-26 22:52:59 In computer science, a stack is a temporary abstract data type and data structure based on the principle of Last In First Out (LIFO). Stacks are used extensively at every level of modern computer systems. For example, a modern PC uses stacks at the architecture level. These are used in the basic design of an operating system for interrupt handling and function calls.
Among other uses, stacks are used to run a Java Virtual Machine, and the Java language itself has a class called "Stack", which can be used by the programmer. Hence, it is quite clear that the stack is ubiquitous within the realm of computing, and it is therefore important for both software and hardware professionals to master its
intricacies.
In this article by Dani Vainstein, we will write our very own Stack class i
VS2008 dramatically improves QTP’s Debug capabilities 2008-02-22 00:18:55 Yesterday I was in for a very pleasant surprise - I've just installed Visual Studio 2008, and was working on a QTP test, when I've noticed a something strange with QTP's Debug
view.
Usually when you add a watch to an Object, QTP will present it as an enigmatic "<Object>", with no further description. If you're really lucky, it will be accompanied by a small "+" sign, which will expose some of the object's properties. In this example, oDic is a Scripting.Dictionary object I've created. You can see that it has a .Count property, Item property, etc.:
It's important to note that a Scripting.Dictionary object has many properties and methods that are not shown in QTP's debug window - .Keys, .Items, .Remove, .Add etc.
However, after installing VS2008, my debug view presen
QTP 9.5 Hands-On Review 2008-02-06 21:35:57 This is the official QTP 9.5 review of the AdvancedQTP team which was prepared during the QTP 9.5 beta process - It summerizes dozens of hours on the new version, by all the AdvancedQTP team.We hope that this review will help the QTP community make the transition to the new version easier, as well as foster and encourage HP to take care of the points raised for improvement.
The review is extensive - over 25 pages long, and offers a close examination of the major changes and new features of QTP 9.5. We've covered everything from the installation process, through the new IDE and OR improvements, and up to the new Web extensibility and new support of new environments.
So go right ahead and download the review!
Read more:Hands
A new version of ReporterManager is here 2008-01-20 00:28:34 We're very happy to announce that a new version
of ReporterManager (0.9.2) is now available!
This version includes several bug-fixes, as well as a new reporter - XML. Unlike QTP's native report , this XML reporter can save its contents to disk with every report event, so you never have to worry about losing the log in case QTP hangs or crashes. If you'd like, you can even control the tradeoff between the reporter robustness to its performace, by setting the interval between each disk-write.
As the XML log can utilize an XSL stylesheet, it can become practically any type of report you'd like. HTML with rich tables, AJAX enabled report, CSV, plain text, etc. I've included a default XLS stylesheet, but you're welcome to make one tailored to your own custom needs. In fact, we would l
The FR Project is coming! Are you ready for it? 2008-01-16 15:11:03 We are very pleased to announce that our Flight Reservation Project
(FR Project) will soon launch out of beta!
After a very intense Beta phase, the project will be published this Saturday (19/01/2008) at the Project's official forum. You are free to visit the forum and read the discussions, but you have to register with the project's staff in order to download the actual project files. It's a quick and simple procedure, and you can do it here.
We recommend that you make yourself ready
and register as soon as possible, so you'll be able to enjoy the project the moment it publishes.
The FR project is much more than just another tutorial or framework. The project is an online course that simulates a "real-world" automation-testing project. The project offers a unique opportunity
uTest Revolutionizes the QA Outsourcing Market 2008-01-13 15:12:37 uTest is a USA based company (though the founders are originally from Israel), and was recently awarded the Nutter TechnOvation Award for startups. uTest takes the massive QA outsourcing trend of the last few years, and uses it as a stepping stone to what can well be the next phase of QA evolution – crowdsource QA.
Crowdsourcing is the assignment of a task or a project to a large, usually ad-hoc group of people. A good example to crowdsourcing can be found at Threadless, which offers t-shirts that have been designed by common users. One can also think of forums as a very primitive form of crowdsourcing, as a question which was once answered by a paid expert is now "outsourced" to a crowd. Usually, however, the term applies to cases in which the service rendered by the "c Read more:Outsourcing
, Market
Implementing a queue using a dictionary 2007-12-28 07:13:48 A Queue is a particular type of collection, containing entities which are kept in order. The principal (or only) operations on the collection are the addition of entities to the last position and removal of entities from the first position.
Queues provide services in computer science, transport and operations research where various entities such as data, messages, objects, persons, or events are stored and held to be processed later. In these contexts, the queue performs the function of a buffer.
In this article by Dani Vainstein, we will write our very own Queue class implementation. The article will demonstrate the actual code of the class, as well as provide insights and examples of the class usage.
So go right ahead and download the article!
Meeting in Boston 2007-12-27 23:45:24 Last week I was in Boston
, USA as part of a business trip, and I wanted to meet some of our readers. Indeed, some of you have replied, and we managed to get together.
Thanks to Ravi Vuppu and Janardhana Kalvakuntla for meeting me.
I was very happy that i could help you.
Happy Holidays!
Dani.
Upcoming Site Upgrade 2008-03-29 23:16:35 As part of our continuous effort to improve our services, we're planning a vast site upgrade in the next few days.
The upgrade will include migrating to a dedicated server (much, MUCH faster), new content-navigation system, better search engine, a fresh look and feel, new content sections and much much more.
We're confidant the new site will offer a better learning experience, while maintaining AdvancedQTP's commitement to service, professionalism and excellence.
While we'll do our best to keep the transition as smooth as possible, you may experience problems, bugs and glitches during the upgrade and the following days.
We ask for you patience and understanding.
A separate notice will be given before the actual upgrade. In the mean while, here's a teaser sneak peek at the ne Read more:Upcoming
The new site is up! (?) 2008-04-02 18:39:00 Well, it has been a hectic week, and a crazy few hours, but it seems that the new AdvancedQTP site is up and running!
You can read a little on the new site’s features in this FAQ.
I think the upgrade has been quite smooth (in comparison to other upgrades and cut-offs I’ve seen), and the new [...]
TakeColor 2008-04-02 15:33:13 TakeColor is a small tool that captures the color value of any pixel and displays it in various formats. It features stay on top, Hot Keys combination for getting a color (changeable), copy the code or a selected part of this code to the clipboard just by button click and others.TakeColor is a small tool that captures the color value of any pixel and displays it in various formats. It features stay on top, Hot Keys combination for getting a color (changeable), copy the code or a select...
Copy Path to Clipboard - ClipboardPath 2008-04-02 15:23:30 The free software "Clipboard
Path" adds a new command "Copy Path to Clipboard" to the context menu for files and folders. Pasting the complete filename or folder name into any dialog or editor is just a mouse click away. You always get the full path.
Ninotech Path Copy 4.0 2008-04-02 06:29:29 Ninotech Path Copy is a shell extension for Windows 95, 98, NT4, 2000, and XP that enables to copy the path of a file or directory to the Clipboard.
Sorting a String Array 2008-04-02 06:12:31 Sorting arrays in VBScript has never been easy; that’s because VBScript doesn’t have a sort command of any kind. In turn, that always meant that VBScript were forced to write their own sort routines, be that a bubble sort, a heap sort, a quicksort, or some other type of sorting algorithm.
But that was before the advent of the .NET Framework. If you have the .NET Framework installed on your computer then you can sort an array using code no more complicated than this: Read more:Sorting
, String
, Array
Sorting Arrays - Heap Sort 2008-04-02 06:02:42 Heapsort is a comparison-based sorting algorithm, and is part of the selection sort family. Although somewhat slower in practice on most machines than a good
implementation of quicksort, it has the advantage of a worst-case O(n log n) runtime. Heapsort is an in-place algorithm, but is not a stable sort. Read more:Sorting
Worst Case Array Statistics 2008-04-02 05:57:13 Worst case means that the array is already sorted in reverse order from the required. Worst Case
Function just loop from max to min to create a sorted array in descending order Read more:Array
, Statistics
Sorting Arrays - Quick Sort 2008-04-02 05:52:51 Quicksort in action on a list of random numbers. The horizontal lines are pivot values.Quicksort is a well-known sorting algorithm developed by C. A. R. Hoare
that, on average, makes (big O notation) comparisons to sort n items. Read more:Sorting
, Quick
FTP your scripts 2008-04-03 14:31:58 FTP ( File Transfer Protocol )
Article based on
FTP or File Transfer Protocol is used to transfer data from one computer to another over the Internet, or through a network.
Specifically, FTP is a commonly used protocol for exchanging files over any network that supports the TCP/IP protocol (such as the Internet or an intranet). There [...]
Display Records 2008-04-11 20:13:55 The following example demonstrates how to display all records from a table. and loop thorough a record-set. Read more:Display
, Records
Get a WebElement’s style 2008-04-11 04:25:31 While some of a WebElement's style properties are available via it's Test-Object properties (e.g. its height, visibility etc.), a lot of its visual styling is left unknown to QTP. This can be overcome via its Run-Time .CurrentStyle property.