Prepare for your Next Interview
This is a discussion on Writing Test Script Language in QTP within the QTP forums, part of the Software Testing category; How can I write Test Script Language in QTP, Can someone please write some sample of TSL, and some command. Please give various to try Thanks Guys Olateejay...
|
|||
|
Writing Test Script Language in QTP
How can I write Test Script Language in QTP,
Can someone please write some sample of TSL, and some command. Please give various to try Thanks Guys Olateejay |
| The Following 2 Users Say Thank You to olateejay For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: Writing Test Script Language in QTP
QTP uses vbScript.
Set qtApp = CreateObject("QuickTest.Application") qtApp.Launch qtApp.Visible = True The above code will create the application object, start it and make it visible. |
|
|||
|
Re: Writing Test Script Language in QTP
Hi, as Anshoo stated, qtp is based on vbscript.
When you state Test Script Language are you hinting at the kind of scripting used in winrunner ? incase yes, it would be difficult to implement the same in qtp as it is basically based on vbscript and more oriented towards event-driven and object oriented programming concepts. Only possiblity is working with objects as Anshoo stated or depicted in code below - set obj = CreateObject("InternetExplorer.Application"). obj.visible = true. obj.navigate "http://www.google.com". obj.statusbar = 1 while obj.readystate = true strstatus = obj.statustext if strstatus = "done" then msgbox "application loaded completely" end if wend Cheers...
__________________
Regards, V.Umesh Krishnan QA Consultant Last edited by bizzzzzare : 01-11-2008 at 02:41 AM. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is Test Case & Test Script same OR different | Geek_Guest | Test Cases | 8 | 06-11-2008 12:51 AM |
| Template for new test script in QTP | Geek_Guest | QTP | 1 | 06-25-2007 03:20 AM |
| Which language is better to script in Load Runner? | Geek_Guest | LoadRunner | 2 | 04-30-2007 12:17 PM |
| Standard procedure for writing test cases | Jimmy Zorald | Test Cases | 3 | 03-12-2007 10:28 AM |
| ASCII Resume Writing—Some Tips to Get You Writing | timmy | Resume Help | 2 | 12-04-2006 09:27 PM |