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

Let me know how to write scripts in QTP...! I couldnt find a proper material for web based application to gothrough....!
Reply
#2
Not Solved
Please refer to the QTP Help and VB scripting help documents.
Thanks,
SUpputuri
Reply
#3
Not Solved
These help documents you can find in Help folder inside QTP installed folder
Reply
#4
Not Solved
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
Not Solved
Search this Forum , you will surely get loads of code to refer.

Reply
#6
Not Solved
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
Not Solved
you may also want to know the advanced concepts in vbscripting

follow this link

http://www.advancedqtp.com/knowledge-bas...pting-qtp/

download some chapters there and you're all set...

Disclaimer : you should have some programming background
Reply
#8
Not Solved
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,247 04-06-2018, 05:09 PM
Last Post: Ankur
  need to check Alert messages in scripting setukaran 2 3,126 11-21-2014, 01:16 AM
Last Post: prs2014
  Vb Scripting Tutorial Payal Sharma 3 7,818 05-16-2012, 05:58 PM
Last Post: Ankesh
  Scripting Angel 2 3,133 11-03-2010, 08:17 PM
Last Post: rajeshwar
  QTP scripting preethi4 1 4,670 09-11-2010, 09:08 AM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)