Hi Frriends...

I have one Query please give the apropriate ans.

when we r working with web based application , the user
loggedin page name is changed respect to the username (
Take a exp. Yahoomail.com) .When we use Datadriven test to
this scenario ,each time the loggedin page name is
changed ...then the script is fail.. at that time wat can
do...

please give the apropriate ans.

Thanx in advance..

Answers were Sorted based on User's Feedback



Hi Frriends... I have one Query please give the apropriate ans. when we r working with web bas..

Answer / aravindh

Hi, Try Descriptive Programming. It should work
datatable.importsheet "Table.xls",1,1
Cnt=datatable.getrowcount()
SystemUtil.Run "http://www.yahoo.com/"
Browser("micClass:=Browser").Page("micClass:=Page").Link
("micClass:=Link","name:=Mail").Click
Browser("micClass:=Browser").Page("micClass:=Page").WebEdit
("micClass:=WebEdit","name:=login").Set datatable
("UserName",Global)
Browser("micClass:=Browser").Page("micClass:=Page").WebEdit
("micClass:=WebEdit","name:=passwd").Set datatable
("Password",Global)
Browser("micClass:=Browser").Page
("micClass:=Page").WebButton
("micClass:=WebButton","name:=Sign In").Click

Is This Answer Correct ?    1 Yes 1 No

Hi Frriends... I have one Query please give the apropriate ans. when we r working with web bas..

Answer / softwaretester4u

use regular expression of the login name means yahoologin ,
give yahoo.* like depend upon mecury tool.

Is This Answer Correct ?    0 Yes 1 No

Hi Frriends... I have one Query please give the apropriate ans. when we r working with web bas..

Answer / surendra

hi .. when we insert regular expression, at that time also
the script is not running properly and also the smart
identification is disabled when we insert regular
expression...

please Provide another solution..

Thanx in advance.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

Can we do qtp testing without creating objects in Dbject repository? can we do it completely writing code i.e in expert view only. Are there any books for this?

7 Answers   Accenture,


Hi,will U Please Provide me details certification for QTP &QC and also please provide me the Material also. Send to mail:jjaanu2mail@gmail.com

0 Answers  


What are the Features & Benefits of Quick Test Pro ?

1 Answers   Crea,


Explain the concept of object repository and how QTP recognizes objects?

0 Answers  


how can i parameterize a login page by using database parameterization i fetch the username and password from database and put this on login page and click on ok button. so how can we write script for that code please let me know asap thanks

4 Answers   iCreate,






What is the use of "Registeruserfunc" when should we use it? Note:Please do not copy paste the date from QTP help. I tryed it.But I don't Understand where should we use exactly.

5 Answers   Livetek,


What is qtp window?

0 Answers  


Is there any MS Access addin in QTP?

7 Answers  


Greetings friends , Hope all of you are doing well. When I run a test, is it possible for me to for me to take each row from the data table , once at a time. In other words,if i have 10 rows in the global data table, say data1,data2, data 3...and so on up to data10. Can I have the value of data1 when I run a test, and next time when I run the same test (say next day), it should skip data1 as it has already used it and go directly to data 2 ??? Would be great if anybody can help me out know in this issue. Thanks & Regards !!

4 Answers   CTS,


How can I map test requirement to Test Set (multiple test cases)? Under test lab, I have multiple test cases. I would like to map 1 requirement to all test cases under that test set (in test lab)? Currently, I think QC only allow mapping 1 test requirement to 1 test case. Instead I would like to map 1 test requirement to multiple test cases under one test lab.

4 Answers   CarrizalSoft Technologies, DST Global Solutions,


Hi, I am using OutputCheckPoint for 2 webelements Bed:4 and Bath:2 Full,1 partial in my result page and I am storing the value in the data table. I dont need the string Bed:4,I would like to get only the no 4. How can I get it? Even though I highlight only 4,It is seleting the full value "bed 4". Same thing happend for second webelement Bath:2 Full,1 partial I need only the No 2. I used the following to split MyArray = Split(UIBathResult, " ", -1, 1) But it is giving the value My Array(0)=Bath:2full,1Partial I need the only the nos for further comparision.Any help? Thanks Uma

1 Answers   Patni,


How we can add actions in the test using QTP?

4 Answers   BirlaSoft,


Categories