Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
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. |
|
|||
|
Hi olateejay,
Normal DP (Descriptive Programming) decribes this way, in DP there are two types of objects. 1. Standard object 2. Custom object The script below is for standard object, eg: login screen systemutil.run"d:drivers\application\application.exe file // (To call your exe file to action). Set a=dialog("text:=login") // (To know the wat kind of object the window is, just do the thing what I have mentioned, click on object spy, place the hand icon the window or what ever you want) a.activate // (To enable the dailog screen) a.winedit("attached text:=user name:").set"name" a.winedit("attached text:=password:").set"ur password" a.winbutton("text:=ok").click format for the above is [object("property:=value).operation] winedit, winbutton, window, dailog these re standard objects. For custom object, all the properties it will be winobject. I think this will help to understand a bit. If not, feel free to mail |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Which language is better to script in Load Runner? | Geek_Guest | LoadRunner | 3 | 09-01-2009 12:43 PM |
| 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 |
| 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 |