Posted by Albert Gareev on Jun 14, 2011
Parent page: Generating Test Reports Today’s post is a little bit of a side mini-project within the test reports theme. What I wanted is to add more structure in test logs, but made it summarized. So I went to explore about simple approaches in that. Very often, on static pages (without AJAX) the approach used is [...] ...
Posted by Albert Gareev on May 25, 2011
Parent page: Generating Test Reports Let’s now take the examples from the previous post, and add more style. Here’s our XML record simulating log data of a test session. XML Source <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href=".\LogView3.xsl"?> <log> <step type="#note"> <time>21/04/2011 11:45:31 AM</time> ...
Posted by Albert Gareev on Mar 14, 2011
Parent page: Generating Test Reports Today I continue with more complex examples using previously demonstrated XSL parsing nodes grouped into sub-templates. Here’s our XML record simulating log data of a test session. XML Source <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href=".\LogView2.xsl"?> <log> <step type="#note"> ...
Posted by Albert Gareev on Mar 04, 2011
Parent page: Generating Test Reports Today I present XML Tree to HTML Table transformation example. Here’s our XML record simulating logged test steps. XML Source <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href=".\Tree2Table.xsl"?> <log> <step type="GUI Step"> <description>Pasted data [User1234] in edit box [Username] ...
Posted by Albert Gareev on Mar 03, 2011
Parent page: Generating Test Reports Today I present example on dynamically building HTML nodes, with XSL, and from XML data. Here’s our XML record simulating log data of a test session. XML Source <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href=".\LogView1.xsl"?> <log> <step type="GUI Step"> <time>21/04/2011 11:45:31 AM</time> ...
Posted by Albert Gareev on Mar 02, 2011
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 <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href=".\StatsTable.xsl"?> <log> <description>Test login page</description> <reporter>John Doe</reporter> ...
Posted by Albert Gareev on Mar 01, 2011
Parent page: Generating Test Reports The Approach The previous post sets a lot of requirements altogether. Let’s try now to put some answers. How we can have a free, portable, yet powerful viewer? If we go with a web-page format, we can use a web browser for that purpose. If we go with XML format [...] ...
Posted by Albert Gareev on Feb 14, 2011
Whether it’s an all-round automation tool, like TestComplete, or a lightweight Session-Based Exploratory Testing assistant, like RapidReporter, generating good test reports is a challenging task. Obviously, hand-crafted reports would be much better, and live communication is an ideal. Though quite often testers have to report in writing and/or remotely. And if testing is conducted with assistance of a [...] ...
Posted by Albert Gareev on Jan 06, 2011
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 [...] ...
Posted by Albert Gareev on Jan 04, 2011
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 Public Function SysProcessExists(ByVal sName) Dim objSDP Dim objSDPArr Dim boolRC [...] ...
Posted by Albert Gareev on Dec 13, 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. In addition to methods that immediately return a child object, if it’s available, there are others, that help finding objects that only about [...] ...
Posted by Albert Gareev on Dec 07, 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. In addition to methods that immediately return a child object, if it’s available, there are others, that help finding objects that only about [...] ...
Posted by Albert Gareev on Nov 25, 2010
Ultimate Paint is a full-featured 32-bit Windows graphics program for image creation, viewing and manipulation. It supports JPEG, GIF, PNG, BMP, PCX, AVI (reading only), TGA, WMF/EMF, ICO (reading only), IFF/LBM and WAP BMP image formats and Twain compatible scanners. You can easily print your image, setting its size, position and orientation. Ultimate Paint is still [...] ...
Posted by Albert Gareev on Nov 23, 2010
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 [...] ...
Posted by Albert Gareev on Nov 17, 2010
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 [...] ...
Posted by Albert Gareev on Nov 11, 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 FindAllChildren method If proper selection of GUI recognition properties is challenge number zero for a beginner automation [...] ...
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. Dim IEProcess, IExplore Dim PropNames, PropValues Dim [...] ...
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 [...] ...