KabInfo.Net                                           


Q.How the Smart identification mechanisam works ?

1.      A. QuickTest "forgets" the recorded test object description and creates a new object candidate list containing the objects (within the object's parent object) that match all of the properties defined in the base filter property list.

2.      From that list of objects, QuickTest filters out any object that does not match the first property listed in the Optional Filter Properties list. The remaining objects become the new object candidate list.

3.      QuickTest evaluates the new object candidate list:

If the new object candidate list still has more than one object, QuickTest uses the new (smaller) object candidate list to repeat step 2 for the next optional filter property in the list.

If the new object candidate list is empty, QuickTest ignores this optional filter property, returns to the previous object candidate list, and repeats step 2 for the next optional filter property in the list.

If the object candidate list contains exactly one object, then QuickTest concludes that it has identified the object and performs the statement containing the object.

4.      QuickTest continues the process described in steps 2 and 3 until it either identifies one object, or runs out of optional filter properties to use.

If, after completing the Smart Identification elimination process, QuickTest still cannot identify the object, then QuickTest uses the recorded description plus the ordinal identifier to identify the object.

 

Q. Can I change the Active Screen page which is shown on every new test?
A. This page can be changed to be any valid HTML page. The page can be located either locally or on the network.

For example, if you want your entire organization to view the same Active Screen page when they open QTP, you should open the NewTest.inf file located under the dat\snapshots directory of QTP and set the next line:

FileName1=<any full path to an HTML file>

FileName1=\\mercury\public\MainPage.html

Q.How to create an action template?
You can create a template action script that will be used on every new action that is created. You can use this, for example, to add a header comments to each action.

To create the template action you should create a text file with the name ActionTemplate.mst and place it under QTP dat folder.

Q.How to pass parameters when calling actions?
A. You can pass information between actions in several ways:

1.      Using the new Action Parameters feature in Quick Test 8.0

2.      Putting the variable in the data table and then accessing this data table from the called action.

Defining the variable as an environment variable that can be accessed from the entire test.

Q.How to configure the report to show only error (by default)?
A.You can configure the report to show only error by default by adding the following section to the QTReport.ini file (located under QTP bin directory).

[FilterDialog]

ReportAppDefaultFilter=1 # for error only

ReportAppDefaultFilter=3 # shows all messages (default)