Sharing Keywords and scripts across projects in TestComplete

You have need for common test keywords or scripted methods across projects in Testcomplete.
You need that they are only to be maintained in one place.

You can put your shared script units to a separate folder on the hard drive. When you need to link them to a new project, open this folder in the Add Existing item - Script dialog and press the Ctrl+A shortcut to select all files in order to avoid adding them one by one.
You Can however also pick the items one by one.

a way of handling Undefined arguments in TestComplete with JavaScript

Sometimes it comes in handy to be able to have optional parameters in you test methods.
Take a look at this small piece of code.
At first glance, javascript has nothing like this available. However, javascript lets you call functions omitting some parameters, filling in the other parameters with the value undefined.


Help! I need to remame lots of files!!!

If ever are in a situation where you need to rename lots and lots of files, this little tool might help you! ReNamer.
It is found here:

ReNamer is very easy to use, and can apply many renaming rules as bulk operations on selected files or folders.The Gui is simple and easy to use.

I give 5 stars for saving me for a lot of time manupulation files in my test system :-)

Auto-Login Your Windows 7 User Account for easing the reboot during testing

Although I don’t personally recommend this, there are some people out there who don’t want to bother with using a password to protect their Windows user account. Of course, using a password in Windows isn’t required, only suggested. But even if you don’t fill one in, you still have to click your user icon to start the login process.
An easier way - although again much less secure - is to enable auto-logins for your Windows PC. This is possible in Windows 7, as it was in prior versions, but it takes a little finagling to do so. (And for good reason, darn it.)

The Nice and Easy way for making a Pretty Data loop in TestComplete using JavaScript

Using Javascript in TestComplete you might have to make a loop for iterating through data in your tests.
If you are a using the "convert to script" feature in TestComplete, you will get some nasty javascript. And since this is a short post. I will not get into that.

Windows Tip: Auto-Login Your Windows 7 User Account

Although I don’t personally recommend this, there are some people out there who don’t want to bother with using a password to protect their Windows user account. Of course, using a password in Windows isn’t required, only suggested. But even if you don’t fill one in, you still have to click your user icon to start the login process.

RegEx with Notepad++

Searching a string using the ‘Find‘ or ‘Find & Replace‘ function in text editors highlights the relevant match (e.g. searching ‘le‘ highlights it inside words such as ‘apple‘, ‘please’ etc). However, some advanced editors such as Notepad++ (I mention Notepad++ in my examples since its my favourite so far!) supports the use of regex, which recently saved me hours of manually replacing strings and numeric values in files containing HTML and JacaScript codes.

Installing and configuring language packs and settings from the command line in Windows 7

"Changing to whatever locale or language MADE EASY"

The current test environment I’m working several virtual PC are based on on a complete unchanged image from the Windows 7 ISO and several scripts that are running once Windows is installed. However there is a need for being able to have whatever locale og language in the world, without having to create a virtual PC for each. This saves time and storrage space.

Handy littel feature when testing "major" changes to the OS.

When testing and installer or perhaps a change of display language. The RebootAndContinue possibility is very handy when used with persistant project variable for keeping track of the tests state. It is found in TestComplete's aqEnvironment.
I simply stops the test, reboots the machine and continues the test from where it left. Very cool.

Test Case Excel Macro for CTE XL from Berner & Mattner Systemtechnik GmbH

If you are using CTE XL for designing test cases. Here is a small Excel Macro, which takes the test case in a single selected cell in excel. And put each line into individual Excel cells.
(As small disclamer. i did only spend a few minutes implementing it. So it might not be a nice a possible.But it does the job)

Working with strings in TestComplete

A String is a sequence of symbols or digits. Strings are among the most frequently used data types. Like any other data type, strings in TestComplete are represented as OLE-compatible variants. In scripting, a sequence of literal characters, enclosed in double quotes ("), is recognized as a string. Single quotation marks (') are allowed within a string. To insert a double quotation mark into a string, it should be duplicated. The following is an example of string:


str1 = "The buswas heading to London, when the driver noticed a cat on the road."
str2 = "'Ahoy! Is there anyone?' - the captain cried."
str3 = """Nobody."" - was the answer."

To work with strings, TestComplete has a special scripting object - aqString. The object is available for all supported scripting languages, so you can use it to work with string values regardless of the chosen language.

QAliber Test Builder

QAliber Test Builder is a robust testing framework for creating and executing tests with no coding skills. Integrates fully as part of QAliber End to End solution, this product will give you the best value for creating test automation framework.

Test Automation FX - UI Testing in Visual Studio

Test Automation FX (TAFX for short) enables developers and testers to record and manage user interface tests from inside Visual Studio with 100% .NET code. Read about our approach to test automation.
Has total Visual Studio integration. It installs inside of Visual Studio (2008 & 2010) with custom project templates and designers. Also works with the free Visual Studio Express versions! Very few tools do...
It is 100% .NET

Requirements for a test Automation Tool

Talking about different tools are often talking all the attention in the process of getting test automation founded in an organization. Normally there already a preferred vendor. So therefore their tool is picked to be the best. Sometimes organization bother them selves with having an none objective consultant come visit. Just to tell them they are right (which is nice to hear of course).
But think a bit of how you process is, how your daily work is, how it ought to be. Do this in all levels of your testing organization.

Test Automation Tool showdown. TestComplete, HP Functional Tester (QTP), Rational Functional Tester (RFT), CodedUI, White, Telerik Test Studio, Ranorex and Qualiber comparison table

  Test Complete QTP CodedUI Telerik Test Studio Qualiber Rational Functional Tester White Test Automation FX