SAPGuiSession("Session").Reset // This code will take you to home page, doesnt matter where you are.
SAPGuiSession("Session").Reset "VA03" //This code will take you to VA03 t-page from anywhere.
Method Name | Description | Syntax |
---|---|---|
AddSheet | Adds the specified sheet to the run-time data table | DataTable.AddSheet(SheetName) |
DeleteSheet | Deletes the specified sheet from the run-time data table | DataTable.DeleteSheet SheetID |
Export | Exports the Datatable to a new file in the specified location | DataTable.Export(FileName) |
ExportSheet | Exports a Specific Sheet of the Datatable in run-time | DataTable.ExportSheet(FileName,SheetName) |
GetCurrentRow | Returns the active row of the run-time data table of global sheet | DataTable.GetCurrentRow |
GetParameterCount | Returns the number of columns in the run-time data Table of Global Sheet | DataTable.GetParameterCount |
GetRowCount | Returns the number of rows in the run-time data table of Global Sheet | DataTable.GetRowCount |
GetSheet | Returns the specified sheet from the run-time data table. | DataTable.GetSheet(SheetID) |
GetSheetCount | Returns the total number of sheets in the run-time data table. | DataTable.GetSheetCount |
Import | Imports a specific external Excel file to the run-time data table. | DataTable.Import(FileName) |
ImportSheet | Imports the specified sheet of the specific excel file to the destination sheet. | DataTable.ImportSheet(FileName, SheetSource, SheetDest) |
SetCurrentRow | Sets the Focus of the Current row to the Specified Row Number | DataTable.SetCurrentRow(RowNumber) |
SetNextRow | Sets the focus of the next row in the run-time data table | DataTable.SetNextRow |
SetPreviousRow | Sets the focus of the previous row in the run-time data Table | DataTable.SetPrevRow |
Property Name | Description | Syntax |
---|---|---|
GlobalSheet | Returns the first sheet of the run-time data table. | DataTable.GlobalSheet |
LocalSheet | Returns the Active local sheet of the run-time data table. | DataTable.LocalSheet |
RawValue | Retrieves the raw value of the cell | DataTable.RawValue ParameterID, [SheetID] |
Value | Retrieves the value of the cell in the specified parameter. | DataTable.Value(ParameterID, [SheetID]) |
Method Name | Description | Syntax |
---|---|---|
AddParameter | Adds the specified column to the sheet in the run-time data table. | DTSheet.AddParameter(ParameterName, Value) |
DeleteParameter | Deletes the specified parameter from the run-time data table. | DTSheet.DeleteParameter(ParameterID) |
GetCurrentRow | Returns the row number of the active row in the run-time Data Table. | DTSheet.GetCurrentRow |
GetParameter | Returns the specified parameter from the run-time Data Table. | DTSheet.GetParameter(ParameterID) |
GetParameterCount | Returns the total number of Columns in the run-time Data Table. | DTSheet.GetParameterCount |
GetRowCount | Returns the total number of rows in the run-time Data Table. | DTSheet.GetRowCount |
SetCurrentRow | Sets the Focus on the specified Row of the Data Table | DTSheet.SetCurrentRow(RowNumber) |
SetNextRow | Shifts the Focus to the next Row of the Data Table. | DTSheet.SetNextRow |
SetPrevRow | Shifts the Focus to the Previous Row of the Data Table. | DTSheet.SetPrevRow |
Method Name | Description | Syntax |
---|---|---|
Name | Returns the name of the parameter in the run-time data table. | DTParameter.Name |
RawValue | Returns the raw value of the cell in the current row of the run-time data table. | DTParameter.RawValue |
Value | Retrieves or sets the value of the cell in the Active row of the parameter in the run-time data table. | DTParameter.Value |
ValueByRow | Retrieves the value of the cell in the specified row of the parameter in the run-time data table. | DTParameter.ValueByRow(RowNum) |
'Accessing Datatable to get Row Count and Column Count rowcount = DataTable.GetSheet("Global").GetRowCount msgbox rowcount ' Displays 4 colcount = DataTable.GetSheet("Global").GetParameterCount msgbox colcount ' Displays 3 DataTable.SetCurrentRow(2) val_rate = DataTable.Value("Rate","Global") print val_rate ' Displays 7% val_ppl = DataTable.Value("Principal","Global") print val_ppl ' Displays 2556 val_Time = DataTable.Value("Time","Global") print val_Time ' Displays 5
S.No
|
Object
|
Description
|
1
|
Set ObjectName= CreateObject("Wscript.shell")
|
Provides access to the native Windows shell. Provides functions to read system information and environment variables, to work with the registry and to manage shortcuts.
|
2
|
Set ObjectName = CreateObject("WScript.Network")
|
Provides access to the shared resources on the network to which the computer is connected.
|
3
|
Set ObjectName = Createobject("Excel.Application")
|
Perform operations on MS Excel.
|
4
|
Set ObjectName = CreateObject("Word.Application")
|
Perform operations on MS Word.
|
5
|
Set ObjectName = CreateObject("Outlook.Application")
|
Perform operations on MS Outlook.
|
6
|
Set ObjectName = CreateObject("InternetExplorer.Application")
|
Perform operations on Internet Explorer.
|
7
|
Set ObjectName = Createobject("QuickTest.Application")
|
Perform operations on Quick Test Professional (QTP).
|
8
|
Set ObjectName = CreateObject("QuickTest.UpdateRunOptions")
|
A collection of properties that indicate preferences for the Update Run in QTP.
|
9
|
Set ObjectName = CreateObject("QuickTest.RunResultsOptions")
|
A collection of properties that indicate preferences for the run results in QTP.
|
10
|
Set ObjectName = CreateObject("Scripting.FileSystemObject")
|
To work with the Windows file system structure: files, folders, drives.
|
11
|
Set ObjectName = CreateObject("Mercury.DeviceReplay")
|
Perform mouse or key operations exactly as they occur on the mouse or keyboard drivers.
|
12
|
Set ObjectName = CreateObject("Mercury.ObjectRepositoryUtil")
|
Perform an operation on QTP Object Repository.
|
13
|
Set ObjectName=CreateObjcet("Scripting.Dictionary")
|
Creates a dictionary object
|
14
|
Set ObjectName=CreateObject("vbScript.RegExp")
|
Creates a regular expression object
|
15
|
Set ObjectName = CreateObject("Mercury.FileCompare")
|
To compare two files.
|
14
|
Set ObjectName = CreateObject("Mercury.Clipboard")
|
Perform clipboard functionality.
|
15
|
Set ObjectName = CreateObject("Msxml2.DOMDocument")
|
Creates a DOMDocument object to perform operations related to XML document.
|
16
|
Set ObjectName = DotNetFactory.CreateInstance (TypeName [,Assembly] [,args])
|
Returns a COM interface for a .NET object.
|
17
|
Set ObjectName = Createobject("shell.application")
|
To instantiate the Shell object, to program the Shell which can be used to access the file system, to launch programs, and to change system settings.
|
18
|
Set ObjectName= Createobject("TDApiOle80.TDConnection.1")
|
An object that enables to manage the Quality Center connection and retrieve the TDOTA object, which provides full interaction with Quality Center.
|
19
|
Set ObjectName = CreateObject("Microsoft.XMLDOM")
|
To access and manipulate XML documents via the XML DOM implementation, as exposed by the Microsoft XML Parser.
|
20
|
Set ObjectName = XMLUtil.CreateXML()
|
Creates and returns an object of type XMLData. If a root name is specified, a new document is created containing the specified root tag.
|
21
|
Set ObjectName = CreateObject( "AcroExch.App")
|
Acrobat OLE Automation Objects.
|
Set ObjectName = CreateObject( "AcroExch.AVDoc")
| ||
Set ObjectName = CreateObject( "AcroExch.PDDoc")
| ||
Set ObjectName = CreateObject( "AcroExch.HiliteList")
| ||
Set ObjectName = CreateObject( "AcroExch.PDBookmark")
| ||
Set ObjectName = CreateObject( "AcroExch.Rect")
| ||
22
|
Set ObjectName = CreateObject("ADODB.Connection")
|
Creates an instance of the ADO connection to connect to database.
|
23
|
Set ObjectName = CreateObject("ADODB.Recordset")
|
Creates an instance of the recordset object. To be able to read database data, the data must first be loaded into a recordset.
|
24
|
Set ObjectName =CreateObject("msscriptcontrol.scriptcontrol")
|
Perform operations to MS Windows Scripting Engine.
|
25
|
Set ObjectName = CreateObject("SAPI.SpVoice")
|
Auditory voice feedback during a test run, done by utilizing the Microsoft Speech API.
|
26
|
Set ObjectName = CreateObject( "UserAccounts.CommonDialog")
|
Object to provide users with a standard File Open dialog box
|
27
|
Set ObjectName = CreateObject("CDO.Message")
|
Windows CDO object is suitable for creating and sending automated emails.
|