- posted by rajivkumarnandvani at Working with QTP - 2 days agoHere are some links for QTP certification: http://h10017.www1.hp.com/certification/ — Contains details about the program ftp://ftp.hp.com/pub/hpcp/epgs/HP0-M16_EPG.pdf — Exam Preparation Guide. This conta...
- posted by rajivkumarnandvani at Working with QTP - 3 days agoHi All, Now I am going to describle the undocumented feature of QTP that is ClickONText method . Some time we require the object text location ( x ,y position ) in window so that we can click that object...
- posted by rajivkumarnandvani at Working with QTP - 1 week agoHi All, Some time we requre keyboard event in Automation so we can use Send key method rem ********************************************** rem create shell object set WshShell = CreateObject(”WScript.Shell”...
- posted by rajivkumarnandvani at Working with QTP - 5 weeks agoFunction WindowsUnZip(sUnzipFileName, sUnzipDestination) Set oUnzipFSO = CreateObject(”Scripting.FileSystemObject”) If Not oUnzipFSO.FolderExists(sUnzipDestination) Then oUnzipFSO.CreateFolder(sUnzipDesti...
- posted by rajivkumarnandvani at Working with QTP - 5 weeks agoREM This function get the label message text from Web page whose class ErrorMessage OR InformationMessage REM Input objParent := Object Name of from which rquired the Message like Page or Frame REM Out...
- posted by rajivkumarnandvani at Working with QTP - 5 weeks agoHi All, Some time we required that Only OLD open Browser Window( Only for IE) will remain Open and rest of all shall be closed during QTP scripting. Here is the Function which will close the all open Brows...
- posted by rajivkumarnandvani at Working with QTP - 5 weeks agoHi All, Some time we required that Only Latest open Browser Window( Only for IE) will remain Open and rest of all shall be closed during QTP scripting. Here is the Function which will close the all open Br...
- posted by rajivkumarnandvani at Working with QTP - 5 weeks agoChange the following registry settings.. HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\MicTest Locate the key “SkipEnvironmentChecks” By Default the value will be “0″ Change the va...
- posted by rajivkumarnandvani at Working with QTP - 5 weeks agoSome Time QTP not recognize the application object during seond run it Or it run first time successfully then QTP give an error cannot identified the application Window object properties does not match wit...
- posted by rajivkumarnandvani at Working with QTP - 5 weeks agoIf you have worked on QTP for some time you might have encountered errors like “General Run Error” which does not give any details regarding the error and testers often resort to using hit-and-try method t...
- posted by rajivkumarnandvani at Working with QTP - 5 weeks ago1. Go to menu Tools->options following Window will appear If check box not checked then it will shown in Display Add-in Manager on startup checkbox Close the QTP and again open the QTP Application. Now on ...
- posted by rajivkumarnandvani at Working with QTP - 5 weeks agoMake sure your application must be open after opening the QTP tool; otherwise QTP does not record the application. So always open QTP first and after this open the Application. Check Record and Run Options...
rem ********************************
rem delete cookies
call fn_DeletesubFolderAndFiles(”C:\DOCUME~1\%USERNAME%\Cookies”)
rem *********************************
rem rem delete Temporary internet files
call fn_DeletesubFolderAndFiles(”C:\DOCUME~1\%USERNAME%\Locals~1\Tempor~1″)
rem ***********************************
REM *************************************************************************
REM Function fn_DeletesubFolderAndFiles(path)
Rem this Function delete the files & subfolder under the specified path
REM Input spath := Files path or parent Folder path
REM Output(ReturnType) := None
REM Note := IF file Protected then it will not delete without giving Error
REM Created: 17/April/2009 Rajiv Kumar Nandvani ## Changed:MM/DD/YYYY
REM *************************************************************************
Public Function fn_DeletesubFolderAndFiles(spath)
on Error Resume Next
rem Create File System object
set objFileSystem = CreateObject(”Scripting.FileSystemObject“)
rem Create Window Shel object
Set objWshShell = CreateObject(“WScript.Shell“)
Rem get Folderpath under which file present
Set objoFolder = objFileSystem.GetFolder(objWshShell.ExpandEnvironmentStrings(spath))
rem get count the files under the folder and loop run for delete the files
For Each oFile In objoFolder.files
On Error Resume Next
objFileSystem.DeleteFile oFile
Err.clear
Next
rem get count the subfolders under the folder and loop run for delete the subfolders
For Each oSubFolder In objoFolder.SubFolders
On Error Resume Next
objFileSystem.DeleteFolder oSubFolder
Err.clear
Next
rem clear the object
set objFileSystem = nothing
set objWshShell = nothing
set objoFolder = nothing
Err.clear
End function
.jpg)