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")

Answers were Sorted based on User's Feedback



How to write Descriptive programming in .VBS file i wrote this code but it is giving error.. Dim ..

Answer / 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

How to write Descriptive programming in .VBS file i wrote this code but it is giving error.. Dim ..

Answer / santosh.qtp

i am able to open a browser...
but i am not able to user browser object and wait object in
.vbs...

Please tell me how to use the qtp objects in .vbs file ...

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More VB Script Interview Questions

How to generate 3 digit random number?

3 Answers   IBM, Virtusa,


What are the different types of operators and their order of precedence?

0 Answers  


write a vb script to open a text file and write into it

2 Answers  


Explain about the extension .hta?

0 Answers  


compare the string without using stringcomp function?

1 Answers   CSS Corp,






hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

0 Answers  


What is the use of option explicit statement?

0 Answers  


What is the purpose of on error resume next statement?

0 Answers  


Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...

0 Answers  


What are lbound and ubound in the vbscript language?

0 Answers  


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

0 Answers  


how to display all the links in one page using vb script in qtp.

1 Answers   DST Global Solutions,


Categories