Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Scripting
#1
Hi,

Let me know how to write scripts in QTP...! I couldnt find a proper material for web based application to gothrough....!
Reply
#2
Please refer to the QTP Help and VB scripting help documents.
Thanks,
SUpputuri
Reply
#3
These help documents you can find in Help folder inside QTP installed folder
Reply
#4
I want to write scripting of my own without using record and playback...Try to post some codes (For Eg: Login Screen)so that its easy for me to understand and learn with the real time web application..

Reply
#5
Search this Forum , you will surely get loads of code to refer.

Reply
#6
Code:
Function Open( ) dim IE set IE = CreateObject("InternetExplorer.Application") IE.visible = true IE.stop wait(5) IE.navigate "http://www.google.com" set Open = IE Set IE= nothing End Function Dim IEexp set IEexp = Open() Dim IEobj, obrowser,opage,links,objlink,linkcount Set IEobj = open() Set oBrowser= Description.Create() oBrowser("micclass").Value = "Browser" set oPage = Description.Create() oPage("micclass").Value = "page" set Links = Description.Create() Links("micclass").Value = "Link" set objLinks = Browser( oBrowser).Page( oPage).ChildObjects(Links) LinkCount = objLinks.Count msgbox LinkCount For i = 0 To LinkCount-1 set Links = Description.Create() Links("micclass").Value = "Link" set objLinks = Browser( oBrowser).Page( oPage).ChildObjects(Links) objLinks(i).Click datatable.SetCurrentRow(i+1) datatable("Lname",global)=Browser( oBrowser).Page(oPage).GetROProperty("href") Browser(oBrowser).Back Next...

It throws an error in Lname...Could u plz guide me how to overcm this..is there anything i need to add in the datatable of Expert view.

How i can start learning scripts in QTP...I feel i can go fm the concepts and then to deeper into it...Provide sm materials.....
Reply
#7
Reply
#8
Exception Handling:
Exception Handling is available in qtp. If u r going to test a scenario first time using qtp how would u know that there will be an exception?....


Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Objectless Scripting Sruthe 1 1,818 04-06-2018, 05:09 PM
Last Post: Ankur
  need to check Alert messages in scripting setukaran 2 3,953 11-21-2014, 01:16 AM
Last Post: prs2014
  Vb Scripting Tutorial Payal Sharma 3 8,589 05-16-2012, 05:58 PM
Last Post: Ankesh
  Scripting Angel 2 3,783 11-03-2010, 08:17 PM
Last Post: rajeshwar
  QTP scripting preethi4 1 5,123 09-11-2010, 09:08 AM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)