in a database table there are 3 columns (name ,
marks,grade) , in application after retrieving data from
db to fields name, marks click ok button then grade should
displayed ---for this how to write vb script prgm
Answer Posted / baba fakruddin
Let us assume that application is VB application
You can copy and paste in ur PC then analyze u will
understand easily
E.g:
RC=datatable.GetRowCount
msgbox RC
For i= 1 to RC
vbwindow("Form1").vbedit("name").Set DataTable("Name",
dtGlobalSheet)
vbwindow("Form1").vbedit("marks").Set
DataTable("Marks",dtGlobalSheet)
vbwindow("Form1").vbbutton("OK").Click
' Here it will retrieve grade and displays in msgbox
grade=vbwindow("Form1").vbedit("Grade").GetROProperty("text")
msgbox grade
' It places Grade in Run Time Data Table
VbWindow("Form1").VbEdit("Grade").Output CheckPoint("Grade")
' Now we can export that data in to our desired location
Next
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Give the syntax to import/export xls into qtp.
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible
what is test scheduleling?
Name the different types of recording modes?
i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script
How do you convert manual test cases to automated test cases?
What is system testing and what are the different types of tests you perform in system testing?
what kind of frame work you used in your last project?
What is text check point and text area check point?
What is Cross browser testing? Does UFT support it?
Object repositories types, which and when to use?
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
What is the difference between the design-time and run-time data tables?
Explain the parameter in qtp?
How to test the login page in different ways in automation testing and i need code?