Archive

Author Archive

Getting Unique String in QTP

June 23, 2023 Leave a comment

Class clsString

Public Function fun_GetStringWithTimeStamp(strFristString)

strTime = Replace(Time(),”:”,””)

fun_GetStringWithTimeStamp = strFristString&strTime

End Function

End Class

data = RandomString(265)

WScript.Echo Len(data)

WScript.Echo data

Function RandomString( ByVal strLen )

Dim str

Const LETTERS = “abcdefghijklmnopqrstuvwxyz0123456789”

Randomize()

For i = 1 to strLen

RndNumber = Int((Len(LETTERS)- 1 + 1) * Rnd + 1)

str = str & Mid( LETTERS, RndNumber, 1 )

Next

RandomString = str

End Function

Class clsString

Public Function fun_GetStringWithTimeStamp(strFristString)

strTime = Replace(Time(),”:”,””)

fun_GetStringWithTimeStamp = strFristString&strTime

End Function

End Class

Categories: Quick Test Pro

Internet Explorer Operations used in QTP

July 13, 2010 Leave a comment

The Below code illustrate the Internet Explorer Operations

‘$Filename: clsIE.vbs

‘$Description: class consists various IE browser operations

‘$Author:    Deep Routhu

Read more…
Categories: Quick Test Pro

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

TestCase and TestStep execution with Groovy…

July 9, 2010 6 comments
TestCase looping
for( c in 0..5 )
testRunner.runTestStepByName( “My Request” )
Categories: SoapUI

Assertions

July 9, 2010 Leave a comment
Name = values.getPropertyValue(“UserName”);
UID = values.getPropertyValue(“UserID”); Read more…
Categories: SoapUI

Properties

July 9, 2010 Leave a comment

Properties

when creating a testsuite or a testcase it is required to send the properties from one step to another step for which there is an option of  ‘Property Transfer’ in soap UI. Especially when you need to transfer the variable to multiple Steps there is a bit of overhead.

The Best practice is to send the properties to higher level and use them.

Read more…

Categories: SoapUI

Approach to Automation Project

June 23, 2010 1 comment

Well Automation is a separate project just like the development project. There are couple of   factors to decide to go for a Automation.

Read more…

Categories: Quick Test Pro

Useful information on soap UI

June 22, 2010 Leave a comment

you can browse the below link to get more information on SoapUI Tool.

  1. White Papers on soapUI
  2. Forum

Read more…

Categories: SoapUI