Posted by Albert Gareev on Nov 10, 2010
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 […] ...
Posted by Albert Gareev on Nov 09, 2010
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 […] ...
Posted by Albert Gareev on Oct 26, 2010
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 […] ...
Posted by Albert Gareev on Oct 18, 2010
“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 […] ...
Posted by Albert Gareev on Oct 14, 2010
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 […] ...
Posted by Albert Gareev on Oct 12, 2010
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 […] ...
Posted by Albert Gareev on Sep 30, 2010
Besides a rich set of GUI recognition and interaction capabilities, TestComplete provides automation developers a powerful object tools for back-end automation. If you have a generic task to implement, don’t always rush to coding on your own, see what built-in features the tool has. In TestComplete, you can start browsing family of objects which support generic […] ...
Posted by Albert Gareev on Sep 16, 2010
Mind mapping is an extremely useful analysis and design tool. Though distinguish it with other roles, like presentation. Don’t waste your creativity, and don’t try to make a mind map fancy during brainstorming phase. Focus on the problem you solve. See also On importance of test log Telling testing story ...
Posted by Albert Gareev on Sep 14, 2010
TestComplete Type Casting in VBScript: It’s a bug! In computer science, type conversion or typecasting refers to changing an entity of one data type into another. This is done to take advantage of certain features of type hierarchies. For instance, values from a more limited set, such as integers, can be stored in a more […] ...
Posted by Albert Gareev on Sep 07, 2010
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 […] ...
Posted by Albert Gareev on Sep 02, 2010
Mind Map Functions Comparison: One-To-One Relationship 1-1 Comparison: isValueEqual 1-1 Comparison: isValueLess 1-1 Comparison: isValueEqualOrLess 1-1 Comparison: isValueGreater 1-1 Comparison: isValueEqualOrGreater 1-1 Comparison: MatchIn / MatchFor Comparison: One-To-Many Relationship 1-N Comparison: isValueInRange 1-N Comparison: isValueInSet Comparison: Many-To-Many Relationship N-N Comparison: isSetEqual N-N Comparison: isRecordEqual N-N ...
Posted by Albert Gareev on Aug 24, 2010
What’s it about? When TestComplete encounters an object in GUI hierarchy of an application, it tries to recognize it by internal class name: is it an input box, list, button, or data grid. These class names are predefined and come with the product – TestComplete, and/or one of its add-on libraries. Off course, new object […] ...
Posted by Albert Gareev on Aug 19, 2010
Parent page: Service Functions – String (QTP, VBScript) Description Based on the maximum allowed length of the string (strMsgText) insert space characters. Implementation ...
Posted by Albert Gareev on Aug 12, 2010
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 […] ...
Posted by Albert Gareev on Aug 11, 2010
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 […] ...
Posted by Albert Gareev on Aug 09, 2010
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 […] ...
Posted by Albert Gareev on Aug 05, 2010
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 […] ...
Posted by Albert Gareev on Jul 29, 2010
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 […] ...
Posted by Albert Gareev on Jul 27, 2010
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. […] ...
Posted by Albert Gareev on Jul 23, 2010
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 […] ...
Posted by Albert Gareev on Jul 21, 2010
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 […] ...
Posted by Albert Gareev on Jul 19, 2010
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 […] ...
Posted by Albert Gareev on Jul 16, 2010
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 […] ...
Posted by Albert Gareev on Jul 14, 2010
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 […] ...
Posted by Albert Gareev on Jul 12, 2010
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 […] ...
Posted by Albert Gareev on Jul 08, 2010
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 […] ...
Posted by Albert Gareev on Jul 06, 2010
Reference Page: Comparison Rules ...
Posted by Albert Gareev on Jul 05, 2010
“Refactoring is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior. Its heart is a series of small behavior preserving transformations. Each transformation (called a ‘refactoring’) does little, but a sequence of transformations can produce a significant restructuring. Since each refactoring is small, it’s less […] ...
Posted by Albert Gareev on Jun 29, 2010
[ad#4 links text line]
[caption id="attachment_2962" align="alignnone" width="491" caption="Click to see full-screen in a separate window"][/caption]
[ad#Large Banner] ...
Posted by Albert Gareev on Jun 24, 2010
“Refactoring is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior. Its heart is a series of small behavior preserving transformations. Each transformation (called a ‘refactoring’) does little, but a sequence of transformations can produce a significant restructuring. Since each refactoring is small, it’s less […] ...