Subscribe to SQM and join the other 100,000 monthly readers

Always have the most current updates on software, Agile, mobile development, testing and more right at your fingertips.

Subscribe by email:

Your email:

Search

Current Articles | RSS Feed RSS Feed

TestComplete 5 Sneak Peak: Support for WPF Controls

 
Click to display image

Since both TestComplete and Windows Vista are currently under development, the information contained in this article is not final and may change at any time, without notice.

Scrolling Web Screenshot

 
Here's the new scrolling screenshot code added to the WebTestClass. This version captures a picture of the full web page under test.


It's packed up in an example project so you can just load and run the
project to see it in action.


Here's a snippet of the code that creates the WebTest and call scrollShot():



Download the Scrollshot TestComplete project file

Testing Microsoft Access Applications With TestComplete - Part 2

 
Click to display image

The previous article (Testing Microsoft Access Applications With TestComplete - Part 1) states that to test Microsoft Access applications, you have to use both the MSAA engine and COM interfaces to access the application's forms and controls. The article explains how you can use the MSAA functionality to simulate user actions over forms and controls.

Apply for the TestComplete 5 Beta Test

 

AutomatedQA starts beta testing soon for TestComplete 5 - the next version of our industry acclaimed automated testing tool for Win32 and .NET applications. This new version includes many exciting new features and enhancements that will help you create more powerful and thorough tests and organize the testing process better.


The beta test application link is at the end of this post.


Here's a list of some of the new and enhanced features:

Testing Microsoft Access Applications With TestComplete - Part 1

 
Click to display image

A Microsoft Access database or project typically contains tables, queries and forms that are used to view, input and modify data, macros, different reports and other objects. You can test your Microsoft Access databases (projects) in the same way you would test any other Windows application: by simulating mouse clicks and keystrokes. Also, you can use low-level procedures, manual tests and other features provided by TestComplete to test black-box applications.

Faster Code for Delphi's Pos Function

 
Click to display image

In his book, “The Tomes of Delphi Algorithms and Data Structures”, Julian Bucknall wrote that programmers do not pay enough attention to symbols and strings. Typecasting is performed by the compiler, so, quite often, a programmer does not even know what binary code is executed for the code he (or she) wrote. However, knowing this may help you create faster code. For instance, Delphi's Pos function can work faster.

Profiling ASP.NET Applications via the ASP.NET

 

ASP.NET applications can be considered as Internet Information Services (IIS) applications that are built with .NET compilers and use functionality provided by the .NET Framework and .NET assemblies. The manner that you profile your ASP.NET application depends on the development tool that you used to create it.

Two Ways to Use TestComplete with an Unstable UI

 

"Jim, we need to get some automation in place for the Aquarius project." Jim looked up at Laurie in amazement. The Aquarius project was still being prototyped, and probably months away from being stable enough to create any worthwhile scripts.

Using Microsoft Application Verifier Together With TestComplete

 
Sample Application Window

Microsoft's Application Verifier is a tool that monitors the execution of unmanaged applications, traces the application's interaction with the operating system and reports errors and problems with kernel objects, the registry, the file system, and Microsoft Win32 API calls (heaps, handles and others).

TestComplete Tip: How To Set Windows System Time

 

Have you tested to see what happens to your application when the clock turns to midnight? How about when a new year starts?

Retrieving Data From Microsoft Access Reports

 
Click to display image

Microsoft Access includes a powerful report building engine. However, when you double-click a report in the database window to view it, Access displays the printable version of the report in the Print Preview window. This window displays the report as it will be printed and does not contain any child controls that provide access to report data. So, how do you retrieve the data from the report?

Adding Scrolling Screenshots to the Web Test Class

 
In an earlier post I demonstrated how to capture scrolling web screenshots. It's very slick, though that method uses an external utility and doesn't capture the actual state of the web page during a test. The first question I got on it was "How do I capture the page during a test?"


It is possible to create a script to capture a scrolling screenshot of a web page during a test. I've extended the simple web test class to include this functionality in a new "scrollShot()" method. A snippet of the new code is below.


ScrollShot() works and it's very cool, but the code needs a little more testing before release. I'll post the new version of webTest with the scrollShot() as soon as I'm sure it won't melt down your copy of TestComplete 4.

How to Compare XML Files Using Diffxml

 

Diffxml, a free utility for comparing xml files, was recommended from one user to another on the TestComplete message boards recently. Diffxml is a Java command-line tool setup to run on Linux/Unix and it's not obvious how to use it on Windows. There are many programs like this that are designed for Linux but run fine on Windows if you know the steps to make them work.

Working With XML Files In TestComplete

 
TestComplete works with many formats to retrieve and write stored data. Some common formats are csv files, Excel spreadsheets, Access databases, SQL Server databases and XML files. Any of these formats can be used to work with your test data, the one you choose will depend on your organization and your project. XML files are useful for many projects, especially where a less rigid data format is needed.


In this post, I'll demonstrate how to use XML files to store and retrieve test data.

TestComplete can store and retrieve test data in XML files. For example, an XML file could define the name of a control where user actions will be simulated and it could store the value to be entered into the control.

TestComplete Tip: Verify Typed Text

 
A pretty common task that a tester often deals with is verifying that text entered into an edit contol is still valid after entry. It seems simple, but the solution can be puzzling. How would you go about
implementing a script that does this check? Here is a JScript function
that types some text into Notepad edit window (by the way, this window
contains the standard Edit control) and checks that the control
maintains the correct text.

All Posts