How to write Descriptive programming in .VBS file
i wrote this code but it is giving error..
Dim qtApp
set qtApp=createobject("QuickTest.Application")
qtApp.Launch
qtApp.Visible=True
Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible = True
objIE.Navigate "www.gmail.com"
browser("title:=gmail").title("title:=gmail")
Answer Posted / shashank shekhar raj
Hai Quick-test Professional,
For your kind information i want to say you that VB Script
does not support Descriptive programming
But Descriptive programming full-support the VB Script
i mean that if you write this code in QTP which support both
Descriptive programming and VB Script you are sucessfull
but if you write this code in .vbs File which is pure VB
Script then you got the ERROR.
You just observe that .VBS File only shown error on that
line of code in which you write DP Proggraming
browser("title:=gmail").title("title:=gmail")
you got ERROR only in this line because you was not use VB
Script here you was only use DP in this line
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the difference between do until loop and do while loop?
Mention what is the use of option explicit in vbscript?
what is used of Property........End Property loop ? how to write the script for it?
Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.
Write a code to print numbers from 5 to 0?
What are the differences between sub procedures and function procedures?
How strcomp function works?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz
What are the special sub-types in vbscript?
Explain the arrays in vb script?
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
What is the output of a + b in vbscript if a = 5 and b = 10?
How will you get a combined string from array of string in vbscript?