Qtp Scripts

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

4 comments

Comments 1 - 4 of 4 previous next Post a comment

  • + PowerDown PowerDown 1 month ago
    Hi I’m new to this slideshare and qtp. These slides are very usefull and i’ve limited access to internet on my home. How to download those presentations to my desktop?
  • + guest8ea9a guest8ea9a 8 months ago
    Hi,
    I am new to QTP.I have been gven a task to record and script for a tree structure on a web page.
    How do i capture and record? what type of check points do i use?
    How do i capture expand and collapse buttons?

    Thanks
  • + expert.qtp expert.qtp 2 years ago
    Dear Friends,



    For real time concepts on quicktest professional, training , QTP scripts and Certification Material, you can visit quicktesthp.blogspot.com . The posts are updated regularly. If anyone would like to contribute, please feel free to contact me. Refer my blog for contact details..



    Blog Address

    http://quicktesthp.blogspot.com



    For basic tutorials on QTP, you can visit

    http://qtpgoodtutorials.blogspot.com

    ——————–

    Keywords: QTP, quicktest, hp, qtp certification, quicktest professional, qtp training, qtp help, checkpoint, data table, qtp blog, qtp advanced concepts
  • + nanigadu nanigadu 2 years ago
    i enterd just nw...
Post a comment
Embed Video
Edit your comment Cancel

9 Favorites

Qtp Scripts - Presentation Transcript

  1. QTP SCRIPTS http://www.funandknowledge.blogspot.com/
  2. QTP Script for connecting to database(MS Access) Option Explicit Dim con,rs Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.provider="microsoft.jet.oledb.4.0" con.open"d: estdata.mdb" rs.open"select*from emp",con Do while not rs.eof VbWindow("Form1").VbEdit("val1").Set rs.fields("v1") VbWindow("Form1").VbEdit("val2").Set rs.fields("v2") VbWindow("Form1").VbButton("ADD").Click rs.movenext Loop
  3. Database we are using here is MS Access.before running this script create a table in MS Acess. In the above script i used table called "emp" and column names as "v1" and "v2". "d: estdata.mdb" is path of the table which we created. Main use of this application is to use testdata of table(which is in database) in the application. http://www.funandknowledge.blogspot.com/
  4. DataDriven Testing using ExcelSheet instead of Datatable This is script for data driven using excel sheet. In this script we are not importing excel sheet to datatable.Directly values are supplied to application from excel sheet. Set ex= CreateObject("Excel.Application") Set a=ex.Workbooks.open("D:excel.xls") Set b=a.worksheets("Sheet1") dim login,pwd for i=1 to 3 login=b.Cells(i,"A").value pwd=b.Cells(i,"B").value msgbox login msgbox pwd next
  5. "D:excel.xls" is path of excel sheet. "sheet1"indicates sheet name in which values are present. A,B are column names in excel sheet. we have excel sheet with values as shown below in d drive. A B 1 2 3 4 5 6 http://www.funandknowledge.blogspot.com/
  6. Descriptive Programming to Create Folder in System Set obj=createobject ("scripting.filesystemobject") Set notepad=obj.createfolder("d:\abc") this script will create a folder named "abc" in "d" drive. http://www.funandknowledge.blogspot.com/
  7. Timeout for MessageBox Script for MessageBox to disappear after particular time without clicking on ok button manually . Set a=createobject("wscript.shell") msgbox_message="Message Box will close by itself in 10seconds so dont click on OK button" msgbox_time="10" msgbox_title="Testing" a.popup msgbox_message,msgbox_time,msgbox_title Where time is in seconds. http://www.funandknowledge.blogspot.com/
  8. Descriptive Programming for Yahoo Login Page SystemUtil.Run"iexplore","http://www.yahoomail.com" Set g=Browser("name:=Yahoo.*").Page("title:=Yahoo.*") g.WebEdit("name:=login").Set "aaa" g.WebEdit("name:=passwd").SetSecure "bbb" g.WebButton("name:=Sign In").Click g.Link("name:=Inbox.*", "html id:=WelcomeInboxFolderLink").Click g.Link("name:=Sign Out").Click http://www.funandknowledge.blogspot.com/
  9. SystemUtil.Run"iexplore","http://www.yahoomail.com" statement opens yahoo login page aaa=username bbb=password For more QTP Scripts

+ guestb62dd0guestb62dd0, 2 years ago

custom

10323 views, 9 favs, 0 embeds more stats

qtp scripts for connecting to database,datadriven t more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 10323
    • 10323 on SlideShare
    • 0 from embeds
  • Comments 4
  • Favorites 9
  • Downloads 1153
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories