Recently I saw a strange issue in QTP. I was executing some test case during which QTP crashed. I killed the QTP process from the task manager & when I restarted QTP, I found that many of the menu items were missing. Upon searching the web, I found out two solutions that work.
2 Different Ways to Create Global Variables in QTP
October 9th, 2011 | Posted by in QTP Basic Stuff | QTP Concepts - (6 Comments)Did you ever face any situation where you needed to create global variables in QTP so that these global values can be used across multiple actions/functions within your test script? How did you tackle the problem then? If you would have noticed, QTP doesn’t provide any direct method to create global variables. But you can
What is Action Template in QTP?
September 25th, 2011 | Posted by in Not So Common Stuff | QTP Concepts - (5 Comments)Action Template is a mechanism in QTP that allows you to include some text in your new actions by default. The text will be included automatically every time you create a new action.
MsgBox Ran Out of Space? Try DotNetFactory MessageBox instead.
September 15th, 2011 | Posted by in QTP Concepts - (0 Comments)Did you know that the VBScript MsgBox that we usually use in QTP can display a string of maximum 1023 characters only? If the length of the string is more than 1023 characters, the MsgBox displays only the initial 1023 characters, leaving out the remaining ones.
Difference between Call Statement and normal Function Call in QTP
September 4th, 2011 | Posted by in QTP Concepts - (5 Comments)Call is a VBScript Statement that transfers control to a Sub or Function procedure. The syntax of Call statement is – [Call] functionOrSubName [Argument(s)] where, Call is the optional keyword, functionOrSubName is the name of the function or sub to be called, Argument(s) is the comma-delimited list of parameters.
To begin with, lets see what is an object (or test object) w.r.t. to QTP. A test object is an object used by QTP to represent an object in our AUT (Application Under Test). Each test object has a set of identification properties to identify it correctly in the application.
RegExp Object: An Alternative to InStr() Function ?
August 28th, 2011 | Posted by in Not So Common Stuff | QTP Concepts - (0 Comments)Did you ever encounter a situation where you needed to search a sub-string inside a string? Of course InStr() is a great function which helps users solve this problem. But what happens when the sub-string you want to search contains a regular expression?
How To Use Regular Expression Evaluator in QTP 11
August 28th, 2011 | Posted by in QTP Concepts - (4 Comments)QTP 11 has provided a new feature to test the regular expressions that automation testers might use in their object repository. This utility, named ‘Regular Expression Evaluator’, helps the users validate their regular expressions before the actual script execution.