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 for loop and while loop?
Explain the arrays in vb script?
How to open browser in vb script?
What are the environments supported by vbscript language?
How to delete a cookie using vbscript?
In html file what is an ideal position to include vbscript?
How to Import data from a file (file is on the desktop) to the data table
did any one attended interview in applabs if you had gone through plz tell me the procedure
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...
how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.
What are the different types of loops available in the vbscript language?
How can you create an object in vbscript?
Why is the use of exit do or exit for statements within loops discouraged?
Explain different types of segment?
What is the difference between do until loop and do while loop?