Save info   Get password
Home Submit your blog Edit Account Rules RSS-Archive Contact


Descriptive Programming to Capture Tool Tip Text in QTP
2008-11-24 13:01:54
Tooltip:A tooltip is a small pop-up window that appears when a user pauses the mouse pointer over an element.QTP Script to capture tooltip.Below script is for capturing tooltip of textbox in google Site.SystemUtil.Run"iexplore",""a=Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").Object.titlemsgbox aQTP Script to capture tooltip of image.SystemUtil.Run"iexplore",""b=Browser("name:=
Read more: Programming

Descriptive Programming For Playing a Video in Youtube
2008-11-16 09:48:52
QTP Script to play a video(qtp scripts)in Youtube.Systemutil.Run"iexplore","www.youtube.com"Browser("name:=YouTube - Broadcast Yourself.").Page("title:=YouTube.*").WebEdit("name:=search_query","html id:=masthead-search-term").Set "qtp scripts"Browser("name:=YouTube - Broadcast Yourself.").Page("title:=YouTube.*").WebButton("name:=Search","html id:=search-button").ClickBrowser("name:=YouTube - Broa
Read more: Programming

VBScript String Functions(1)
2008-08-12 07:15:01
VBScript String Functions 1.LCase2.UCase3.Left4.Right5.Len6.MidLCase Function:Converts a specified string to lowercase.Syntax:LCase(string)Ex1:a=LCase("LAKSHMI") Msgbox a Output=lakshmi UCase Function:Converts a specified string to uppercase.Syntax:UCase(string)Ex:a=UCase("laxmi") Msgbox a Output=LAXMILeft Function:Returns a specified number of characters from the left side of a st


VBScript String Functions(2)
2008-08-12 07:12:38
VBScript String Functions (1)1.LTrim2.RTrim3.Trim4.Replace5.StrReverse6.SpaceLTrim Function:Removes spaces on the left side of a string.Syntax:LTrim(string)Ex1:a=LTrim(" LAKSHMI ") Msgbox a Output=LAKSHMI . RTrim Function:Removes spaces on the right side of a string.Syntax:RTrim(string)Ex1:a=RTrim(" LAKSHMI ") Msgbox a Output= LAKSHMI.Trim Function:Removes


Script To Load Library Files into Test in QTP at RunTime
2008-06-20 14:32:46
QTP Script to load library file at run time in particular test.But before that just check this post where we loaded library file into test through NavigationOpen notepad and paste the following codeFunction f1 msgbox "first function"End FunctionFunction f2 msgbox "second function"End Functionsave notepad as fff.vbs in C drive.We created library file,now we have to load this file into our test
Read more: Library

QTP Script to Get Count of Unread Yahoo Messages
2008-06-11 15:35:17
Descriptive Programming to find number of unread messages in yahoo mailSystemUtil.Run"iexplore",""Set g=Browser("name:=Yahoo .*").Page("title:=Yahoo.*")g.WebEdit("name:=login").Set "xyz"g.WebEdit("name:=passwd").Set "abc"g.WebButton("name:=Sign In").Clicka=g.Link("name:=Inbox.*").getroproperty("innertext")b=len(a)If b=5 Then Msgbox"u have zero unread messages"elsec=mid(a,8,len(a)-1)d=left(c,len(c)


Descriptive Programming to Open Order in Flight Application
2008-05-30 02:59:21
Descriptive Programming to open order in flight applicationwindow("text:=Flight Reservation").winmenu("menuobjtype:=2").Select "File;Open Order ..."window("text:=Flight Reservation").Dialog("text:=Open Order").Click Window("text:=Flight Reservation").Dialog("text:=Open Order").WinCheckBox("text:=&Order No.").Set "ON"Window("text:=Flight Reservation").Dialog("text:=Open Order").WinEdit("window id:=1
Read more: Application

Steps to Call Function from QTP
2008-05-23 09:59:56
This post is about how to call Function from QTP.Function:-Its a block of statements that perform a particular task.Open a notepad and paste the code shown below.Function f1msgbox "hiii"msgbox "function demo "End Functionand save it as abc.vbs.vbs is extension for vb script files.f1 is function name and abc is file name.Now open a new test and associate the function to new test as shown belowNavig


QTP Script for Comparing Actual Values with Expected Values and to Set Result as Pass or Fail
2008-05-01 03:58:55
QTP Script for comparing Actual Result with Expected Result.Below Script is used to compare actual and expected values in calculator application.We are supplying values to value1 and value2 textboxes from datatable.Column A of datatable to value 1 and column B to value 2.In datatable we have columns A,B,E.V,ResE.V is Expected value column in which we enter values.These values are compared with Act
Read more: Values

QTP Script For Composing Mail in Yahoo
2008-04-28 15:03:48
SystemUtil.Run "iexplore","www.yahoo.com"Set b= Browser("Name:=yahoo.*").Page("Title:=Yahoo .*")b.Link("Name:=Sign In").Clickb.WebEdit("Name:=Login").set "abc"b.WebEdit("Name:=Passwd").set "def"b.WebButton("Name:=Sign In").Clickb.Link("Name:=Mail").Clickb.Webtable("Name:=Check Mail").WebButton("Name:=Compose").Clickb.WebEdit("Name:=To").Clickb.WebEdit("Name:=To").Set"xyz@gmail.com"b.WebEdit("Name:=


QTP Script to get DataTable ColumnCount,Adding new Column to Datatable,Getting Datatable Column Names
2008-04-21 01:46:22
QTP Script to get datatable column countSyntax:-DataTable.GetSheet("sheet name"/sheetid).getparametercountExample:-DataTable.GetSheet(1).getparametercountScript to add new parameter(column)to datatableSyntax:-DataTable.GetSheet("sheet name"/sheetid).AddParameter "columnname","value"Example:-DataTable.GetSheet(1).AddParameter "AAA","4"QTP Script to get all parameter(column)namesFor i=1 to ab=DataTa
Read more: Column , Names

QTP Script to create Excel Sheet and to enter data into it
2008-04-18 04:40:42
QTP Script to create Excel Sheet and to enter data into it(using script).To create Excel SheetSet Excel=createObject("Excel.Application")Set ExcelSheet=createObject("Excel.sheet")ExcelSheet.Application.visible=true'script to enter data(into excel sheet)Excel.ActiveSheet.cells(1,1).value=1111Excel.ActiveSheet.cells(1,2).value=2222Excel.ActiveSheet.cells(2,1).value=3333Excel.ActiveSheet.cells(2,2).v


Datatable Methods(2)
2008-04-17 01:58:31
For first part of this post check Datatable Methods (1)SetCurrentRow:-This method is used for setting the focus of QTP to a specified row.Syntax:-DataTable.SetCurrentRow(RowNumber)Example:-DataTable.SetCurrentRow(1)SetPrevRow:-This method is used for setting the focus of QTP to the previous row of the currently focused row.Syntax:-DataTable.SetPrevRowExample:-DataTable.SetPrevRowSetNextRow:-This m


DataTable Methods(1)
2008-04-17 01:52:08
1.AddSheet:-It is used for adding a new sheet to runtime datatable.Syntax:-DataTable.AddSheet("Sheetname")Example:-DataTable.AddSheet("laxmi")2.DeleteSheet:-It is used for deleting a specified sheet from runtime datatable.Syntax:-DataTable.DeleteSheet("Sheetname")Example:-DataTable.DeleteSheet("laxmi")3.Import:-It is used for importing all the sheets from Excel sheet to runtime datatable.Syntax:-D
Read more: Methods

Page 1 of 1 « < 1 > »
eXTReMe Tracker