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

hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

0 Answers  


Input = 124 output should be 124421 Please do not use any string functions/variables

8 Answers   Cap Gemini,


How can I write HTML text to the window in VB Script?

2 Answers  


HOW TO OPEN NEW TAB USING VB SCRIPT IN QTP?

1 Answers   TCS,


how to set one column as primary key in QTP and fetch values accordingly

0 Answers   Ford,


write a program to display configuration of a local system with the help of vb script.

0 Answers  


How you can call vbscript functions?

0 Answers  


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

0 Answers  


How will you get the last occurrence of one string within another string using vbscript?

0 Answers  


How do you declare a variable in vbscript?

0 Answers  


How to write functional test cases for send button in gmail.

2 Answers   Arctern,


I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

0 Answers  


Categories