ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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
 Question Submitted By :: Jaya
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
I feel, I could not understand your question.
I am not sure this syntax is correct, better to check it.
i=Browser().Page().WebTable().RowCount()

For x=1 to i
myData = Browser.page.WebTable().GetCellData(x,2)
'Assume, 2 is the number of Name Column.
allData=myData
'Use different Logic
Next
You can get all the data in those 3 columns.

The last part in your question is not understandable for me.
 
Is This Answer Correct ?    0 Yes 0 No
Kk
 
  Re: 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
# 2
allData should be declared Globally, outside of any 
Loop/Condition.

allData=myData
I am sorry, correction for the above line.
allData=allData & vbcrlf & allData

I would like to know people feed back, about this posting.
 
Is This Answer Correct ?    0 Yes 0 No
Kk
 
 
 
  Re: 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
# 3
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 ?    0 Yes 0 No
Baba Fakruddin
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
I install .Net Add-Ins in my system. It installed properly. But all the objects are recognizing as window objects only. But it has to recognize as swf objects. In Record and Run setting i selected 'Record and run test on any open browser' and Record and run test on any open Windows-based application' Can any one tell what setting i have to do to recognize objects correctly as swf...? Please give some suggestions..?  1
When u r running a script , if u get a popup window that describing that u have received a mail to your outlook application. so to avoid the interference of the popup window , which recovery scenario(popup,object state,application hang,system crash) would u use ? Accenture3
When The Low Level Recording is Used in QTP  13
What is AUT in object reposity in QTP? Why we use it in Object repository???What is full form???????  2
How to load a object repository in QTP during runtime? Virtusa1
How to change the screen name while running the test. TCS3
What is the difference in between function and sub as well as give some code of both Wipro1
Where you can store check point results?  2
How to capture a window in qtp or how to take snapshot of any window while writing script in qtp  2
In QTP where i have to concentrate more in the Interview point of View  1
what is Unicode Compatibility ? HOw does this makes a diffrence from Winrunner.?  2
What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance.. Wipro6
Hai Guys, can anybody show me how to write automaed test cases using VB scprit(examples)...i had an interviw soon...please guyz send as quickly as possible  5
What is throw object?  1
write vbscript on veb applications in qtp with exapmles?  1
When there is descriptive programming, why do we go for Object repository for desigining scripts.?? why cant we use descriptive programming instead of using the Object repository..?? DST-Global-Solutions2
Explain script generated at the time of setting runtime property?  1
How we wil do data driven test using chkpts? Plz. give me complete navigation steps for this?  1
The interviewer asked me when u recorded one application.object repository properties are saved with .tsr extention. in qtp expert view wherever mouse is there that snapshot displayed in active screen but some recored script lines are not displyed in actives screen y? IBM2
Please Clarify if smartidentfication is used at runtime when qtp does not recogonize the objects Ordain-Solutions2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com