When testing a web application, the url for each page
changes, so using QTP how do u handle this scenario. If
anyone knows please answer in detail about the whole
procedure. Thanks a lot.

Answers were Sorted based on User's Feedback



When testing a web application, the url for each page changes, so using QTP how do u handle this s..

Answer / nanda

may be u want to say the page title will chage, due to that
script fails?
if it is ur situation:

use the regular expression for page title property in
Object repository. it will handle ur scenario.

regular expression will be : .* , this will be matched to
any value, so that QTP will recogninze the page even the
titles are changing dynamically.

if u didnt get this please mail at: nanda.dreddy@gmail.com
by reffrening this question.

Is This Answer Correct ?    2 Yes 0 No

When testing a web application, the url for each page changes, so using QTP how do u handle this s..

Answer / arjuncr

hai subash
by using regular expression we can handle this

syntax:
browser("title:=.*page.*").page("title:=.*page.*").webutton
("name:=Click").Click

the above is descriptive programe.by this we can handle
dynamic changes.

Is This Answer Correct ?    0 Yes 0 No

When testing a web application, the url for each page changes, so using QTP how do u handle this s..

Answer / dimple

First of all what is the purpose of recording that URL
changes?
The tester should concentrate more on functionality of the
application.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More QTP Interview Questions

Other than using import sheet statement for importing the data from excel sheet, is there any other method that can be used?

2 Answers  


is it possible to add sheets to excel at runtime

1 Answers  


This is Ajay i have few douts if anybody know pls give me reply. 1. i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording

3 Answers   Symantic Space,


what is selective recording ? and normal recording?

1 Answers   iSoft,


What is the meaning Work bench?

0 Answers  


1.IF SOME OBJECT IN APPLICATION IS NOT IDENTIFIED BY QTP? HOW WILL YOU OVERCOME THIS? 2. WHEN AND WHYDO U GO FOR DESCRIPTIVE PROGRAMMING? 3. WHAT IS THE DIFFERENCE BETWEEN VB AND VBA? 4.WHAT ARE THE REGULAR EXPRESSIONS YOU USED? 5.IF ANY REQUIREMENT IS ADDED IN YOUR PROJECT, HOW WILL YOU PROCEED TO DERIVE THE TEST CASES AND HOW WILL YOU PERFORM AUTOMATION FOR IT?

2 Answers   RBS,


what about f2&f6 function keys

1 Answers  


What does it mean when a check point is in red color? what do u do?

1 Answers  


Hoe to generate all numbers in between to numbers suppose all numbers in between 1 to 100 using vbscript give me code

2 Answers  


How to use the object spy in quicktest professional 8.0 version?

0 Answers  


WHAT IS THE DIFFERENCE BETWEEN QTP SCRIPT AND VB SCRIPT? HOW MUCH PERCENTAGE WE USE IN QTP SCRIPT REAL TIME AND HOW MUCH PERCEN OF VB SCRIPT,,,,,,,

0 Answers  


what is difference between application testing and product testing?

5 Answers   IBM,


Categories