Skip to main content

Posts

Featured Post

WebDriver setup with Eclipse IDE for Java

Recent posts

Convert JSON to XML using QTP/UFT/VBScript

Sample Code : Dim strPage,strJSON,objIE strPage = "C:\Jay\JLoader.html" Set objIE = CreateObject("InternetExplorer.Application") objIE.Visible = True objIE.Navigate2 strPage While objIE.Busy : Wend strJSON = "{""FirstName"":""Jay"", ""LastName"":""Krishna""}" Set objWin = objIE.document.parentWindow objWin.execScript "var jsonStr2XML = function(strJSON) { return json2xml(JSON.parse(strJSON));};" Msgbox  oWin.jsonStr2XML(strJSON) objIE.Quit In Detail: Converting The most popular data interchange format JSON(JavaScript Object Notation) to XML using QTP/UFT. Parsing JSON in UFT could be a challenge so we will use JavaScript in UFT to make it perfect. SO We need :              Java Script API  - To Convert JSON to XML                         JavaScript Files :  ...

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...

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...

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 ...

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  ...