Sunday 27 October 2013

OUTPUT VALUES IN QTP



-> output values used to store run time values. its stored output values into variable only duration of the run session.The values can later be used as input at a different point in the test.

-> QTP allows user to retrieve run time value and stored them. Then its used for different stage of our test.

-> The output values are stored in Runtime datatable (Global Sheet or Local Sheet)

we can stored this output value into

   * A test ir Action Parameter
   * The Run time data table
   * The Evironmental Variable



The following categories are availble for Output values

   * Standard Output value
   * Text and Text Area output value
   * Database Output Value
   * XML output Value

* Standard output Value

The standard output values are used for retrieve and used the property values of the object.

In Recording Mode -> INsert -> output value -> standared output value -> select the object in app which we want -> select the object property value for want to used for output value-> select the name and location in datatable (Global sheet or Local Sheet) -> clik ok

* Text and Text Area output value

The Text and Text Area output value are used for retrieve and used the Text property values of the object.

In Recording Mode -> INsert -> output value -> Text output value ->select the object in app which we want -> select the object property value for want to used for output value-> select the name and location in datatable (Global sheet or Local Sheet) -> clik ok


* Database Output Value

In Recording Mode -> INsert -> output value -> Database output value -> ok

* XML Output Value

We can use the output value from the Elements in the XML file.

In Recording Mode -> INsert -> output value -> XML Output Value(Resources) -> select the XML file ->  XML Output Value property window open -> select the element and attribute values -> click <#> symbol in attribute value -> select the name and location in datatable (Global sheet or Local Sheet) -> click ok


Adding Existing output value into a test

-> QTP allows users to reuse the existing output values.

->Every time output value stpes run and replace the existibg values with new values.

Insert -> Output value -> Existing Output Value

No comments:

Post a Comment