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
How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?
How is test case write?
What is a checkpoint? How many check points are there in qtp?
What is the difference between a Function and Procedure in QTP?
how can we compare descriptive programing with a regular expression
Why is Client side image is preferred over server side image?
How can you handle exceptions in qtp?
How you will rate urself in QTP in the range of 0 to 5
How to recognise the webelement and verifying that webelement is enabled?
What are the key points to create a framework in QTP for oracle forms?
How many tabs are available in debug viewer pane?
What is the difference between run time object and test object?
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
What is fragmentation and paging?
How to create Reusable and Multiple Actions?