site
stats

Menu Items Missing in QTP?

October 10th, 2011 | Posted by Anish Pillai in QTP Concepts - (2 Comments)

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.

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

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.

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.

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.

Reserved Objects in QTP

September 2nd, 2011 | Posted by Anish Pillai in QTP Concepts - (5 Comments)

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.

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?

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.