Archive

Archive for July 11, 2010

QTP Connection to Access DB

July 11, 2010 Leave a comment
The below code illustrate the connection to Access Data Base.
Here we are using the class concept as it helps us to organize the code.
Class clsAccess
‘ @HELP
‘ @description: This class is defined to handle database operations.
‘ @END
Categories: Quick Test Pro

Executing Soap ui from VBS file

July 11, 2010 Leave a comment
The below code illustrate to execute the the Soap UI project to execute.
It executes all the test suites in the Soap UI Project
‘Calls to the function
ExecuteSoapUI “127.0.0.1”
‘Function to execute the soap UI  Project
Public Function ExecuteSoapUI(IPaddress)
Categories: Quick Test Pro

Load Properties from ini file

July 11, 2010 Leave a comment
The Example code below explains how do we get the ini file located in the system. Which get the properties and saves as global properties.
def loadProperties(path)
{
//Loads the file settings.ini
def properties = new java.util.Properties();
properties.load( new java.io.FileInputStream( “c:/settings.ini” ))
return properties
Categories: SoapUI