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
Hi,All How to create a link in excel sheet using qtp
What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this
Can anybody post some real time scenario in qtp? please its very urgent.
Can we write winrunner language i.e TSL in QTP tool?
How to export quicktest professional results to an .xls file?
What is action split and the purpose of using this in qtp?
What is the keyword view and expert view in qtp?
Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.
can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com
Explain sub procedure of vbscript.
I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.
How is recording done when a application is over lapping the QTP application it gives a message object not recorded
What does mean by Scope of Automation?n How we defined it?
Explain the concept of how quicktest professional identifies object?
what are the challenges you have faced while testing web based application using the automation tools ?