In QTP how to insert a data base check point for web based
application and simultaneous link to code in expert veiw.
hw to retrieve a data(single coulumn from server) that
matches with inserted value manually or exported from excel
sheet.

Answer Posted / gayatri

I have coded this, can anyone plz rectify and send


Dim con, rs, username1
Set con=Createobject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
con.connectionString="Drivers={SQLServer};
DSN=<dsn_name>; OPTION=0; PWD=konnects; PORT=<port name>;
SERVER=<server name>; UID=konnects"
con.open
rs.open SQL ,conn
SQL= "select user_name from t_member"
Set rs=con.Execute(SQL)
DbTable("DbTable").Check CheckPoint("DbTable")
on error resume next
while rs.EOF
Do Until username1=user_name
username1=rtrim(rs.fields("user_name"))
msgbox username1
If username1=username Then
Msgbox " User name already exist try another"
Username=inputbox("Username")
msgbox User_name
else
rs.MoveNext
end if
loop
wend
rs.close
con.close
Set rs = Nothing
Set con = Nothing

Browser("").Page("page name").WebEdit("UserName").Set
UserName

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get the natural logarithm of the given number in vbscript?

603


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2393


What are subprocedures in vbscript?

662


why do u choose to go for testing why cant for devoloping

1590


about vb scripting programs this type of all question& answers

1693






Explain about the support of asp for vb script functionality?

528


In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?

2022


what do you mean .ota mobile format

1941


Illustrate briefly about the different types of statement

2025


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2498


What is the use of the recordset object and which statement is used to create such an object?

529


What is difference between vbscript and vba?

612


Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

2022


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1805


Explain the .wsf files?

533