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
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 |
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 |
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me
Mention what is vbscript procedures?
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository
How to make sure that items in a wintree are sorted al?
When to use function procedures and what are its characteristics?
How to pass the parameter from one function to another function in VB Scripting?
Write a program to resize an array of 5 elements to 4 elements and display all the elements.
what is the use of Data base check point ?
what is extension of the file if its saved from recovery manger to some drive
Which is the default Data types in VBScript?
how to find number of characters(letter a) in the sentence Rain Rain Go away
write a vb script to open a text file and write into it