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

I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

0 Answers  


hi this is srinivasa(from blr) i complited my B.tech(e.c.e) in 2007 im searching job in s/w testing but idont have freshers resume for s/w testing please send some s/w testing resume for me(fresfers resumes only) advns thnks you

2 Answers  


Can you tell me any books or websites to learn VB Script for QTP ??

1 Answers  


What is the present version of the VB Script we are using

1 Answers  


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

0 Answers  






Hi All, I need code for how to execute qtp scripts from excell sheet

0 Answers  


How can you delete the results file (XML)

2 Answers  


How do you use the parameters.input parameters and out put parameters.

1 Answers   Polaris,


what is the difference between DATA TABLE and DATA SET?

2 Answers   Accenture,


What is text check point and text area check point?

0 Answers  


Will QTP Support Japanese Language?

3 Answers   Cap Gemini, Infosys,


What are the benefits of qtp?

0 Answers  


Categories