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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
take one example and write vbscript on one web application
in qtp?
explian descriptive programe with one example?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: take one example and write vbscript on one web application in qtp? explian descriptive programe with one example?
Answer
# 1
Example for VB Script

Function fib(n)

Dim fab(70)

fab(0)=0
fab(1)=1

      For j=2 to n
	  
         fab(j)=fab(j-1)+ fab(j-2)
      
      Next

      For i=0 to n-1
	 
         msgbox fab(i)
      Next

end function


Next Save this function in .vbs file and call the function 
in QTP Action

Example for Descriptive Programme

systemutil.Run("http://www.rediffmail.com")

set BRO =Description.Create()
BRO("title").Value = "Welcome to Rediff.com India"
BRO("name").value ="Welcome to Rediff.com India"
BRO("openedbytestingtool").value= true


Set PG =Description.Create()
PG("title").value="Welcome to Rediff.com India"
PG("url").value="http://www.rediff.com/index.html"

Set UN =Description.Create()
UN("name").value= "login"
UN("Class Name").value ="WebEdit"
UN("type").value= "text"
UN("html tag").value="INPUT"

Set PWD =Description.Create()
PWD("name").value ="passwd"
PWD("Class Name").value="WebEdit"
PWD("type").value="password"
PWD("html tag").value="INPUT"

Set Login =Description.Create()
Login("name").value ="Go"
Login("Class Name").value="WebButton"
Login("type").value="submit"
Login("html tag").value="INPUT"
Login("value").value="GO"
Login("class").value="rmailgobtn"

temp= Browser("Welcome to Rediff.com").Page("Welcome to 
Rediff.com").WebElement("ShockwaveFlash1").Exist
If temp= true Then
    'Browser("Welcome to Rediff.com").Page("Welcome to 
Rediff.com").WebElement("ShockwaveFlash1").
End If


Browser(BRO).Page(PG).WebEdit(UN).Set "testingwithshyam" 
Browser(BRO).Page(PG).WebEdit(PWD).Set "shyamshyam" 
Browser(BRO).Page(PG).WebButton(Login).Click





..................... Any More Querys mail to 
testingwithshyam@gmail.com
 
Is This Answer Correct ?    1 Yes 1 No
Shyam.meghansh
[Hydus Technologies (INIDA) Pvt Ltd]
 
  Re: take one example and write vbscript on one web application in qtp? explian descriptive programe with one example?
Answer
# 2
Hi
i am senthilkumar now i am working manual tester. i will 
test windows application.

how will test application
pls send me small script
 
Is This Answer Correct ?    0 Yes 0 No
Senthilkumar
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Explain script generated after applying database check point?  2
what are SetToProperty, SetROProperty,GetToproperty scripting?  2
If u r using descriptive programming to identify the object where do u write the script for those objects? do u write it in the expertview? plz do answer its urgent thanks advance.  2
Pls let me know completely about descriptive programming, where it is used, pls explain with a real time example of its occurence and the program code written in qtp.  3
Explain the check points in QTP? Prapan-Solutions14
Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so..  1
What is the current version of QTP and now it is the product of Mercury or HP TCS9
How do we retrieve the content from a text box in a web page  2
What is difference b/w AOM,DOM,COM Have u ever is used ny of the models.If so why? GE1
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME Ordain-Solutions3
where is the bitmap checkpoint be saved  3
Hi All, What is an XML Checkpoint in QTP? How can i use it while testing a web application? Kindly explain in detail. Thanks in advance  2
how to invoke the web application through script in qtp Synechron5
is we can import the object repository from external source. if it so then how?  5
Which version of QTP is using by companies nowadays?  2
What is the Difference between Environment variable and Globle variable,.. anybody can give me answer..Thanks in advance... IBM2
How to export(copy) the entire webtable from the webpage into Excelsheet? using Vb scripting  9
How to create configuration scripts  1
When we use 'ERR' object to handle the exceptions in the script, do we need to include any statement in the beginning of the script..?? DST-Global-Solutions2
How to pass a variable in Dos Command using QTP? Eg: Dim path1, path2 path1 = "C:\Test\sample1.doc" path2 = "C:\Test\sample2.doc" How can we pass these path1 and path2 inside the "copy" dos command? I tried like this. this is not working. oShell.run "cmd /K copy" &path1 &path2  1
 
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