Geeks Talk

Prepare for your Next Interview




Writing Test Script Language in QTP

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...


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-03-2007
Junior Member
 
Join Date: Apr 2007
Location: london
Posts: 1
Thanks: 0
Thanked 2 Times in 1 Post
olateejay is on a distinguished road
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
Reply With Quote
The Following 2 Users Say Thank You to olateejay For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 01-10-2008
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 51 Times in 36 Posts
Anshoo_Arora is on a distinguished road
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.
Reply With Quote
  #3 (permalink)  
Old 01-11-2008
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 347
Thanks: 4
Thanked 54 Times in 44 Posts
bizzzzzare is on a distinguished road
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.
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 01:11 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved