Skip to main content

Posts

Showing posts from 2015

Jenkins Integration with HP QTP/UFT & HP QC/ALM

Over – View: ü   HP QTP/UFT should be integrated with HP QC/ALM. ü   Jenkins should be configured. ü   Install Jenkins HP Application Automation Tools Plugin ü   Create a Build & Run How to Configure HP Application Automation Tools   Plugin : §   Goto Jenkins Home Page navigate to “ Manage Jenkins ” -> “ Manage Plugins ” §   Search for HP Application Automation Tools plugin and install. §   Restart the Jenkins with adding “restart” as URL parameter like “http://servername:8080/restart” §   Now Goto Jenkins - > Mange Jenkins - > Manage System                 §   Fill the HP QC/ALM Details and Save. §   Now Navigate back To Jenkins Home page and Click on New Item. §   Select type as Freestyle project and enter the Build Name . §   Fill the required details and select Build Triggers  as  Build periodically and specify the schedule. §   Select Add Build Step as “ Execute HP functional tests from HP ALM”   §   Select ALM Server

Intro to CI (Continuous integration) - Jenkins

                                 Continuous integration is a process to integrate development work and Testing to identify the development errors as early as possible to achieve rapid application delivery throughout the software application lifecycle.  The Jenkins Over-View:                                          Jenkins is one open source tool to perform continuous integration. The basic functionality of Jenkins is to execute a predefined list of steps based on a certain trigger. For example the trigger might be a time based trigger or conditional trigger or etc.                              Builds can be started by various means, including being triggered by commit in a version control system, by scheduling via a cron-like  mechanism, by building when other builds have completed, and by requesting a specific build URL. Eg - execute build every 30 minutes. The basic list of steps: perform a software build with Apache Maven or Gradle Run a shell sc

Send Mail uisng Outlook with Vb Script or QTP/UFT

strToaddress  =   "Jayakrishna@sample.com; Jayakrishna2@sample.com " strSubject  =   "Sample-Subject" strBody  =   "Sample-Body" strAttachPath  =   "C:\Dump\Sample.txt" SendMailFromOutlook strToaddress,strSubject,strBody,strAttachPath Function  SendMailFromOutlook ( strToaddress,strSubject,strBody,strAttachPath )        Dim  objOut, Objmail        Set  objOut  =   CreateObject ( "Outlook.Application" )        Set  Objmail  =  objOut.CreateItem ( 0 )                   With  Objmail         . To   =  strToaddress         .Subject  =  strSubject         .Body  =  strBody          If  strAttachPath  <>   ""   Then                                .Attachments.Add ( strAttachPath )          End   If         .Save         .Send        End   With             'Clear the memory        Set  objOut  =   Nothing        Set  Objmail  =   Nothing End   Function Note : Mail will be sent from your Local Co

ZipFiles/Folders Using VB Script in QTP/UFT

Sample:  strmyFolderPath = "C:\Jay\Sample" strZipFilePath  = " C:\Jay\My SampleFile.Zip" Call  ZipMyFolder (  strmyFolderPath, strZipFilePath  ) Function  ZipMyFolder (  strmyFolderPath, strZipFilePath  )      Dim  intSkipped, intSrcItems      Dim  objApp, objFolder, objFSO, objItem, objTxt      Dim  strSkipped      Const  ForWriting  =   2     intSkipped  =   0      ' Make sure the path ends with a backslash      If   Right (  strmyFolderPath,  1   )   <>   "\"   Then         strmyFolderPath  =  strmyFolderPath  &   "\"      End   If      ' Use custom error handling      On   Error   Resume   Next      ' Create an empty ZIP file      Set  objFSO  =   CreateObject (   "Scripting.FileSystemObject"   )      Set  objTxt  =  objFSO.OpenTextFile (  strZipFilePath, ForWriting,  True   )     objTxt. Write   "PK"   &   Chr ( 5 )   &   Chr ( 6 )   &   String (   18 ,  Chr (

How To Open Password Protected Excel Macros

    Jst Follow the Below Steps To Crack The Password Potected Excel Macros:                  Open the Excel File using "Excel" and check the Project properties:                                        Dont know the Password ???????      It's So Simple !!!!!!         Just Install the " Open Office " in Your Machine!!!!!     Open the Same Excel File using the Open Office and Press " ALT + F11 "      Now You can be able to See the Macros without any PASSWORD!!!! Cheers!!!! Happy Learning!!!! J @ !

Attach ScreenShots To ALM Test RUN in HP UFT/QTP

'===================================================================================================================== 'Function Name                              :    QC_AttachScreenshots 'Description                                 :    To attach the screenshots to test run in QC 'Author                                          :    Jay 'Input Parameter                           :     strScreenshotsFolder - The complete path of the folder that has the screenshots 'Return Value                                  :     None 'Date Created                                  :     13/11/2014                                  '===================================================================================================================== Function  QC_AttachScreenshots  ( strScreenshotsFolder )      Dim  objFSO,  objFolderName, objfileList, objFile      Set  objFSO  =   CreateObject ( "Scripting.FileSystemObject" )      Set  objFolderNam

Customised HTML Result Report for UFT/QTP with ScreenShots in HP ALM TestSet attached.

On   Error   Resume   Next '======================================================================================================================================== 'Module Name            :    GenerateCustomReport.qfl ' Author                    :    Jay 'Date Created            :     13/11/2014 'Description                :     The library contains various functions that are used to generate a Custom HTML report '======================================================================================================================================== 'Project/Test Specific Variables Public  blnGlobalHTMLReport : blnGlobalHTMLReport  =   True       ' is a global variable. If this is set to true then Custom HTML Reporting will be enabled for the Test Public  blnGlobalQTPReport : blnGlobalQTPReport  =   True           ' is a global variable. If this is set to FALSE then the Reporter events will NOT be logged by this function only. Reporter event