preload

XML/XSL Transformation: Stats Table

Posted by Albert Gareev on Mar 02, 2011
0
Parent page: Generating Test Reports Today I present example of an HTML Table populated with XML data. Here’s our XML record simulating stats data of a test session. XML Source Did you notice the following line? <?xml-stylesheet type=”text/xsl” href=”.\StatsTable.xsl”?> This is how we instruct the web browser to use XSL script for visualization of XML […] ...

DotNetFactory interface functions – SysProcessKill

Posted by Albert Gareev on Jan 06, 2011
0
Close/Terminate Specified Process Parent page: Service Functions – DotNetFactory (QTP, VBScript) Description Create an instance of Process object through DotNetFactory – search for local processes by name – iterate through the returned array and close one by one. First attempt – “gentle” close (via CloseMainWindow()). WaitForExit() gives a process some time to finalize, you may customize […] ...

DotNetFactory interface functions – SysProcessExists

Posted by Albert Gareev on Jan 04, 2011
0
Check If a Process Exists in Memory Parent page: Service Functions – DotNetFactory (QTP, VBScript) Description Create an instance of Process object through DotNetFactory – search for local processes by name – return result as boolean. Note. Name is case-insensitive but no wildcards supported. Implementation Examples ...

TestComplete – FindChildSync

Posted by Albert Gareev on Dec 13, 2010
0
Parent page: GUI Recognition with TestComplete TestComplete provides a whole set of run-time GUI recognition functionalities, based, however, on the same approach: recognition by property values and/or location of the object in internal hierarchy. In addition to methods that immediately return a child object, if it’s available, there are others, that help finding objects that only about […] ...

TestComplete – Wait then Find

Posted by Albert Gareev on Dec 07, 2010
0
Parent page: GUI Recognition with TestComplete TestComplete provides a whole set of run-time GUI recognition functionalities, based, however, on the same approach: recognition by property values and/or location of the object in internal hierarchy. In addition to methods that immediately return a child object, if it’s available, there are others, that help finding objects that only about […] ...

TestComplete – Couldn’t Find and Fine ...

Posted by Albert Gareev on Nov 23, 2010
0
Parent page: GUI Recognition with TestComplete First of all, a short note to those readers who like to rush into conclusions. This post is about a feature, not bug. Here I continue exploring TestComplete GUI recognition capabilities with code example. The previous two posts (here and here) were about Find, FindChild, and FindAllChildren methods. Today I […] ...

TestComplete – Handling Web Browser (3)

Posted by Albert Gareev on Nov 17, 2010
0
Parent page: GUI Recognition with TestComplete Close, minimize, maximize, move, resize browser window Description A WebForm (Page, Frame, table, etc.) can not be operated same way as window. The first thing function does is iterating upwards the hierarchy to access Process object, which is used to retrieve browser window reference. In the example presented, IEFrame property […] ...

TestComplete – Find Child Objects

Posted by Albert Gareev on Nov 11, 2010
0
Parent page: GUI Recognition with TestComplete TestComplete provides a whole set of run-time GUI recognition functionalities, based, however, on the same approach: recognition by property values and/or location of the object in internal hierarchy. Today’s post is about FindAllChildren method If proper selection of GUI recognition properties is challenge number zero for a beginner automation […] ...

TestComplete – Find Child or Find Yourself?

Posted by Albert Gareev on Nov 10, 2010
0
Parent page: GUI Recognition with TestComplete TestComplete provides a whole set of run-time GUI recognition functionalities, based, however, on the same approach: recognition by property values and/or location of the object in internal hierarchy. Today’s post is about Find method We continue with example from the previous post. What happened when the script clicked on […] ...

TestComplete – Run-time GUI recognition

Posted by Albert Gareev on Nov 09, 2010
0
Parent page: GUI Recognition with TestComplete TestComplete provides a whole set of run-time GUI recognition functionalities, based, however, on the same approach: recognition by property values and/or location of the object in internal hierarchy. Today’s post is about FindChild method Let’s start with the example. Note highlighted lines: this is where object recognition properties are […] ...

How to “Save As” text template

Posted by Albert Gareev on Oct 26, 2010
0
Parent page: Service Functions – System (QTP, VBScript) Question I need to modify text file template (add a few lines) and “Save as”. Answer One of the typical challenges that people face while trying to automate work tasks, is “procedure – result” confusion. Here, the end result* is confused with a way** to do the […] ...

TestComplete – Object Recognition Properties

Posted by Albert Gareev on Oct 18, 2010
0
 “I don’t even see the code anymore; all I see now is blonde, brunette, redhead”, Cypher (Matrix the Movie) Parent page: GUI Recognition with TestComplete Unlike operators from the popular movie, automation engineer sees picture first, but has a need to get inside down to the code. In TestComplete we can do that with Object […] ...

TestComplete – Handling Web Browser (2)

Posted by Albert Gareev on Oct 14, 2010
1
Parent page: GUI Recognition with TestComplete Close all browser windows Description In the example presented, Internet Explorer browser program (executable name) is hard-coded (as “iexplore”). Closing begins from first instance number (i.e. a sequential number of the process in memory, if a few were loaded). In first attempt, .Close method is used, which allows an application […] ...

TestComplete – Handling Web Browser (1)

Posted by Albert Gareev on Oct 12, 2010
0
Parent page: GUI Recognition with TestComplete Close single browser window Description In the example presented, Internet Explorer browser program (executable name) is hard-coded (as “iexplore”). Instance number (i.e. a sequential number of the process in memory, if a few were loaded), is parameterized. In first attempt, .Close method is used, which allows an application to finalize. Second […] ...

Anti sleep function (TestComplete, VBScript, LLPlayer)

Posted by Albert Gareev on Sep 07, 2010
3
Sometimes a PC goes to sleep, launches screensaver or locks the desktop during a long synchronization periods or other GUI inactivity periods, like generation of reports or batch processing. Adding the function below makes the script periodically moving mouse to avoid breaking of the execution. Place the call to the function within your time-consuming loops […] ...

Inserting breaks into text line

Posted by Albert Gareev on Aug 19, 2010
0
Parent page: Service Functions – String (QTP, VBScript) Description Based on the maximum allowed length of  the string (strMsgText) insert space characters. Implementation ...

N-N Comparison: SetMatchFor

Posted by Albert Gareev on Aug 12, 2010
1
Reference Page: Comparison Rules Automatic Comparison Rules Relationship: Many-to-Many / Rule: Match For Set in Another Set Definitions Supported data types: String, Number, Date Supported data structures: Vector Comparison of values of different data types always returns False. Comparison of values of unsupported data types always returns False. Vector data structure is presented by a set […] ...

N-N Comparison: SetMatchIn

Posted by Albert Gareev on Aug 11, 2010
0
Reference Page: Comparison Rules Automatic Comparison Rules Relationship: Many-to-Many / Rule: Set Match In [Another Set] Definitions Supported data types: String, Number, Date Supported data structures: Vector Comparison of values of different data types always returns False. Comparison of values of unsupported data types always returns False. Vector data structure is presented by a set […] ...

N-N Comparison: isRecordEqual

Posted by Albert Gareev on Aug 09, 2010
0
Reference Page: Comparison Rules Automatic Comparison Rules Relationship: Many-to-Many / Rule: Is Data Record [in Dictionary] Equal To Another One Definitions Supported data types: String, Number, Date Supported data structures: Dictionary (Associative Array) Comparison of values of different data types always returns False. Comparison of values of unsupported data types always returns False. A record is […] ...

N-N Comparison: isSetEqual

Posted by Albert Gareev on Aug 05, 2010
0
Reference Page: Comparison Rules Automatic Comparison Rules Relationship: Many-to-Many / Rule: Is Set Equal Definitions Supported data types: String, Number, Date Supported data structures: Vector Comparison of values of different data types always returns False. Comparison of values of unsupported data types always returns False. Vector data structure is presented by a set (un-ordered array) of […] ...

1-N Comparison: isValueInSet

Posted by Albert Gareev on Jul 29, 2010
0
Reference Page: Comparison Rules Automatic Comparison Rules Relationship: One-to-Many / Rule: Is Value In Set Definitions Supported data types: String, Number, Date Supported data structures: Scalar, Vector Comparison of values of different data types always returns False. Comparison of values of unsupported data types always returns False. Scalar data structure is presented by any single […] ...

1-N Comparison: isValueInRange

Posted by Albert Gareev on Jul 27, 2010
1
Reference Page: Comparison Rules Automatic Comparison Rules Relationship: One-to-Many / Rule: Is Value In Range Definitions Supported data types: String, Number, Date Supported data structures: Scalar, Vector Comparison of values of different data types always returns False. Comparison of values of unsupported data types always returns False. Scalar data structure is presented by any single value.  […] ...

1-1 Comparison: MatchIn / MatchFor

Posted by Albert Gareev on Jul 23, 2010
0
Reference Page: Comparison Rules Automatic Comparison Rules Relationship: One-to-One / Match In String / Match For String Definitions Supported data types: String, Regular Expression  1. Match in String First argument – base string; second argument – substring / regular expression. 2. Match for String First argument – substring / regular expression; second argument – base […] ...

1-1 Comparison: isValueEqualOrGreater

Posted by Albert Gareev on Jul 21, 2010
0
 Reference Page: Comparison Rules Automatic Comparison Rules Relationship: One-to-One / Rule: Is Value Equal Or Greater Definitions Supported data types: String, Number, Date Comparison of values of different data types always returns False. Comparison of values of unsupported data types always returns False. Data type: String Strings are compared based on total length and encoding […] ...

1-1 Comparison: isValueGreater

Posted by Albert Gareev on Jul 19, 2010
2
Reference Page: Comparison Rules Automatic Comparison Rules Relationship: One-to-One / Rule: Is Value Greater Definitions Supported data types: String, Number, Date Comparison of values of different data types always returns False. Comparison of values of unsupported data types always returns False. Data type: String Strings are compared based on total length and encoding of each […] ...

1-1 Comparison: isValueEqualOrLess

Posted by Albert Gareev on Jul 16, 2010
0
Reference Page: Comparison Rules Automatic Comparison Rules Relationship: One-to-One / Rule: Is Value Equal Or Less Definitions Supported data types: String, Number, Date Comparison of values of different data types always returns False. Comparison of values of unsupported data types always returns False. Data type: String Strings are compared based on total length and encoding […] ...

1-1 Comparison: isValueLess

Posted by Albert Gareev on Jul 14, 2010
0
Reference Page: Comparison Rules Automatic Comparison Rules Relationship: One-to-One / Rule: Is Value Less Definitions Supported data types: String, Number, Date Comparison of values of different data types always returns False. Comparison of values of unsupported data types always returns False. Data type: String Strings are compared based on total length and encoding of each […] ...

1-1 Comparison: isValueEqual

Posted by Albert Gareev on Jul 12, 2010
0
Reference Page: Comparison Rules Automatic Comparison Rules Relationship: One-to-One / Rule: Is Value Equal Definitions Supported data types: String, Number, Date Values of different data types are considered unequal. Values of unsupported data types are considered unequal. Data type: String Strings are compared based on total length and encoding of each character. Two strings are […] ...

Taking snapshot of a folder structure

Posted by Albert Gareev on Jul 08, 2010
0
In the Checking structure of created folders example I used a text file as a source, containing manually prepared folder names to check for. Today I want to show how file/folder structure could be captured automatically. Data Record Declaration For this example, data will be stored in Dictionary object serving as a dynamic array of records. Sample file […] ...

Checking structure of created folders (Excel/VBA)

Posted by Albert Gareev on May 05, 2010
1
In the previous post I warned about possible synchronization issues while copying a complex and/or large file-folder structure. To ensure reliability of the operation performed we may verify the structure that was created. We need to answer the following questions before designing the script. Which folders and files should it verify? Which way should it […] ...
Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported
This work by Albert Gareev is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported.