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
How will you get the natural logarithm of the given number in vbscript?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
What are subprocedures in vbscript?
why do u choose to go for testing why cant for devoloping
about vb scripting programs this type of all question& answers
Explain about the support of asp for vb script functionality?
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?
what do you mean .ota mobile format
Illustrate briefly about the different types of statement
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
What is the use of the recordset object and which statement is used to create such an object?
What is difference between vbscript and vba?
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..
how to comvert 120 into one hunderd twenty rupees only and vice varsa
Explain the .wsf files?