Posted by Albert Gareev on Jun 25, 2009
Publication URL: http://www.qaguild.com/weekly_archives.php?UID=60
Code examples package: overload-codeexamples1
Overload your VBScript functions
While implementing Automated Functional Testing solutions I often face the challenge creating the scripts somewhat “intelligent”, capable of making decisions and recognizing different logical patterns on the run. One of the major steps on this path is breaking the boundaries of ...
Posted by Albert Gareev on Jun 18, 2009
Parent page: Service Functions – DotNetFactory (QTP, VBScript)
Used resources
Service Functions – String (QTP, VBScript)
Implementing optional and default parameters
Create TextBox along with the Prompt Label and place on the GUI Form.
Public Function PlaceTextBox(ByRef objForm, ByVal objParameter)
Dim sPrompt
Dim intLeft, intTop
Dim objTextBox, objLabel
'Verify parameters
If TypeName ...
Posted by Albert Gareev on Jun 17, 2009
Parent page: Service Functions – DotNetFactory (QTP, VBScript)
Creating .NET objects from VBScript/QTP
You can create a basic Form and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object.
Currently supported optional [...] ...
Posted by Albert Gareev on Jun 16, 2009
Parent page: Service Functions – DotNetFactory (QTP, VBScript)
Creating .NET objects from VBScript/QTP
You can create a ComboBox (Dropdown Listbox/InputBox Object) and assign required properties within one line by calling the function below. The function has one mandatory parameter (list of available selection items – packed in the Dictionary object) and a set of optional parameters provided in [...] ...
Posted by Albert Gareev on Jun 15, 2009
Parent page: Service Functions – DotNetFactory (QTP, VBScript)
Creating .NET objects from VBScript/QTP
You can create a CheckBox and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object.
Currently supported optional parameters:
CheckBox [...] ...
Posted by Albert Gareev on Jun 14, 2009
Parent page: Service Functions – DotNetFactory (QTP, VBScript)
Creating .NET objects from VBScript/QTP
You can create a TextBox (single-line Text Input object) and assign required properties within one line by calling the function below. The function has only optional parameters provided in the Dictionary object.
Currently supported optional parameters:
TextBox Width and Height.
TextBox Coordinates – Left, Top.
p.text – Text ...
Posted by Albert Gareev on Jun 13, 2009
Parent page: Service Functions – DotNetFactory (QTP, VBScript)
Creating .NET objects from VBScript/QTP
You can create a label and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object.
Currently supported optional parameters:
Label [...] ...
Posted by Albert Gareev on Jun 12, 2009
Parent page: Service Functions – DotNetFactory (QTP, VBScript)
Creating .NET objects from VBScript/QTP
You can create a button and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object.
Currently supported optional parameters:
Button [...] ...
Posted by Albert Gareev on Jun 11, 2009
Publication URL: http://www.qaguild.com/weekly_archives.php?UID=55
Data-Driven != Parameterized
(Or How to Avoid Test Flow Hard-Coding And Dramatically Reduce Code Maintenance Cost in Functional Test Automation)
Many times looking at the busy screen together with Business Analyst I used to discuss dozens of manual Test Cases they execute to cover the functionalities of this single Window or Dialog. Business Logic seemed [...] ...
Posted by Albert Gareev on Jun 10, 2009
Original date: 12 May 2009, 5:00pm
Quality Assurance Functional/Regression Automated Testing and Test Automation Requirements: Usability, Maintainability, Scalability, and Robustness.
Maintainability Requirements Matrix
Setup
- What level of convenience you want to have setting-up the scripts?
If Test Data file and path are hard-coded in the script then pointing to another data file requires code change. If the login procedure ...