The Senario is
Steps to do
1.Entered userid in textbox
2.saved with details
3.i want to open user which i have created

its in hurry.....



The Senario is Steps to do 1.Entered userid in textbox 2.saved with details 3.i want to open use..

Answer / guest

What i understood is Enter USerid and save that in to DB
and retrive from DB, if the scenarion is that then the
script will be

window("WN).winedit("Userid").set"xxxxx";
x=window("WN).winedit("Userid").getvisibletext(userid);
set conn = createObject(ADODB.conection);
set comm = createObject(ADODB.command);
set rs = createObject(ADODB.Recordset);
conn.provider = "Provide the DB provider name"
comm.activeconnection=conn;
comm.open = "insert x into user";
comm.execute;
res.open "select * from user",conn

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

Please any on explain usage of "on error resume next","On error goto 0" with sample code....Thankyou......... when a tester is asked to execute 100 scripts in a short time..(the server will be down in another 10 min)..how he has to run those scripts?

2 Answers   Datamatics,


How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.

2 Answers  


How to test login module with different username and password by using data driven testing in QTP?

0 Answers   HCL,


write a qtp code to count the number of child objects in login page and highlight it

2 Answers  


can anybody give me the links for vb script material

1 Answers  






Hi im new in Testing..can any one plz re-write this code SystemUtil.Run "C:\Program Files\Mozilla Firefox\firefox.exe","","C:\Program Files\Mozilla Firefox","open" ----using for loop(for i=0;i<=10;i++ )

2 Answers  


Using QTP checkpoint, where do you store your expected Properties of the object which later compares with the actual properties of the object???

4 Answers  


How we can add objects to the object repository during the running?is it possible or not?explain

3 Answers  


Tel me what was the automation testing process you followed?

2 Answers  


Cn u please clarify my doubt Where are micTab and micReturn used.Thanx in Advance

2 Answers  


Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations

0 Answers   TCS,


How to get the column count and column name from the resultset in the database connection program?

6 Answers  


Categories