Can we write class for vb script in Quick Test Professional?
Answer Posted / ddpras
Yes, Place the vb script in functions/procedures. Create a
new class and place the fun or procedures inside of the class.
create an instance for the class access the methods outside
as external source.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
They asked by using qtp recording writing scripting
whare exactly we have to use functions and sub routain
I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You
how to idetfy which test cases are automated?who will deside that plz tell me
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
How do I generate Test Results window using descriptive method ( run time ) after my test execution process? Please have a look of my below code. ========================================================= Dim qtApp Dim qtTest Dim qtResultsOpt Set qtApp = CreateObject("QuickTest.Application") qtApp.Launch qtApp.Visible = True qtApp.Options.Run.CaptureForTestResults = "Always" qtApp.Options.Run.RunMode = "Fast" qtApp.Options.Run.ViewResults = True qtApp.Open "C:\Automation\Example", True Set qtTest = qtApp.Test qtTest.Settings.Run.OnError = "NextStep" Set qtResultsOpt = CreateObject ("QuickTest.RunResultsOptions") qtResultsOpt.ResultsLocation = "C:\Automation\Example\Res1" qtTest.Run qtResultsOpt MsgBox qtTest.LastRunResults.Status qtTest.Close Set qtResultsOpt = Nothing Set qtTest = Nothing Set qtApp = Nothing ========================================================== This code is working fine, but Test Result window is not displaying after execution. Anybody can please help me regading the same. Thanks Akshaya Madali Capgemini India Pvt Ltd 9823213538
Explain how you can find the absolute value of the number in qtp?
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
Whats the realtime QTP testing process
What is the descriptive programming?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
How to find Operating system information using QTP script?
Can we create user defined functions in qtp?
Difference between action & Reusable action?