Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69501

UFT tool is not identifying Chrome browser in Jenkins VM machines when executing through Jenkins job

    XMLWordPrintable

Details

    Description

      When I execute UFT automation scripts from Jenkins VM machine, UFT is not identifying Chrome browser and execution getting failed due to this issue. But same script works fine when executing locally on the same Jenkins VM.

      Below are the few details. please let me know if you need any additional information.

      We are using plugin version: 7.4.3

      And we are at Jenkins version: 2.332.1

      UFT Version Tested: 15.0.2, 2021 R1 Build 870

      Attachments

        1. HpToolsLauncher.zip
          105 kB
        2. HTML_20UFT_20Report.zip
          133 kB
        3. Jenkins_Issue_Test1.zip
          335 kB
        4. Jenkins_Issue_Test1-1.zip
          335 kB
        5. Jenkins Console_09082022.txt
          6 kB
        6. props08112022124845876.txt
          8 kB
        7. props08112022124845876-1.txt
          8 kB
        8. props21102022144439914.txt
          8 kB
        9. props21102022144439914-1.txt
          8 kB
        10. Results08112022124845876_506.xml
          1 kB
        11. Results08112022124845876_506-1.xml
          1 kB
        12. Results21102022144439914_80.xml
          0.8 kB
        13. Results21102022144439914_80-1.xml
          0.8 kB
        14. run_results.html
          612 kB
        15. run_results-1.html
          612 kB
        16. UFT_Logs.zip
          195 kB

        Activity

          hildaboth Hilda added a comment - - edited

          Hello,

          Can you please provide more information about the performed steps, that can be used to reproduce on our environment,

          Can you also share with us the Console Output from Jenkins, the UFT Report and also UFT logs (%appdata%\Micro Focus\UFT\Logs).

          Thank you,

          Hilda Both

           

          hildaboth Hilda added a comment - - edited Hello, Can you please provide more information about the performed steps, that can be used to reproduce on our environment, Can you also share with us the Console Output from Jenkins, the UFT Report and also UFT logs (%appdata%\Micro Focus\UFT\Logs). Thank you, Hilda Both  
          kumbashi Srikanth Kumbashi added a comment - - edited

          Hi,

          UFT Automation code are in GitHub and job configured in Jenkins.

          When job executed from Jenkins, automation code get cloned into remote machine (Jenkins Windows agent) from GitHub and UFT will execute the scripts in remote machine.

          Issue: In above process UFT is launching the Chrome browser and navigating to URL, but UFT is not identifying the Chrome browser for further execution.

          Same script works fine when executing locally (Not executing from Jenkins).

          As requested, HTML_20UFT_20Report.zip attached the Console Output from Jenkins, the UFT Report and also UFT logs (%appdata%\Micro Focus\UFT\Logs).

          Let me know if you need any additional details.

          kumbashi Srikanth Kumbashi added a comment - - edited Hi, UFT Automation code are in GitHub and job configured in Jenkins. When job executed from Jenkins, automation code get cloned into remote machine (Jenkins Windows agent) from GitHub and UFT will execute the scripts in remote machine. Issue: In above process UFT is launching the Chrome browser and navigating to URL, but UFT is not identifying the Chrome browser for further execution. Same script works fine when executing locally (Not executing from Jenkins). As requested, HTML_20UFT_20Report.zip attached the Console Output from Jenkins, the UFT Report and also UFT logs (%appdata%\Micro Focus\UFT\Logs). Let me know if you need any additional details.
          dbogdan7 Dorin Bogdan added a comment -

          Hi kumbashi ,

          1. From run_results.html it seems that the test fails after opening the browser, when trying to reach the page:

          https://wfmt-test1.test.intranet/MDWHub/login

          So, please make sure that page is accessible from that machine, and the test Passes when it runs directly from UFT One.

          If the test passes from UFT One but fails from Jenkins, then try step 2:

          2. From Jenkins logs, it appears that the test run time is pretty long, about 1h:

           

          19:36:45 Running test: C:\Automation\Applications\WFMT\StartUp_Script
          20:38:44 Test result: Failed
          

           

          Please define a small test and run it from UFT One and then from Jenkins, to see if it works.

          If the small test fails from Jenkins, then try this:

            2.1. Rerun the small test, but from command line (as Admin), using the statement copied from Jenkins logs, like this:

           

            C:\Automation\APPLICATIONS\WFMT\HpToolsLauncher.exe -paramfile props08092022140624228.txt

           

            But use the right file name props***.txt (instead of props08092022140624228.txt).

            Then attach here the props*.txt + Results*.xml, together with UFT test folder content (vbscript file, html report, etc...).

          dbogdan7 Dorin Bogdan added a comment - Hi kumbashi , 1. From run_results.html it seems that the test fails after opening the browser, when trying to reach the page: https://wfmt-test1.test.intranet/MDWHub/login So, please make sure that page is accessible from that machine, and the test Passes when it runs directly from UFT One. If the test passes from UFT One but fails from Jenkins, then try step 2: 2. From Jenkins logs, it appears that the test run time is pretty long, about 1h:   19:36:45 Running test: C:\Automation\Applications\WFMT\StartUp_Script 20:38:44 Test result: Failed   Please define a small test and run it from UFT One and then from Jenkins, to see if it works. If the small test fails from Jenkins, then try this:   2.1. Rerun the small test, but from command line (as Admin ), using the statement copied from Jenkins logs, like this:   C:\Automation\APPLICATIONS\WFMT\HpToolsLauncher.exe -paramfile props08092022140624228.txt     But use the right file name props***.txt (instead of props08092022140624228.txt).   Then attach here the props * .txt + Results * .xml , together with UFT test folder content (vbscript file, html report, etc...).

          Hi Dorin,

          Sorry for the delay as I was busy with PI planning.

          Please find the attached all the required details. 

          I am also sending you separate email with system report that I have generated based on our support partner:- Orasi 

          Please let me know if anything else needed.

          Jenkins_Issue_Test1.zip

          Results21102022144439914_80.xml

          props21102022144439914.txt

          kumbashi Srikanth Kumbashi added a comment - Hi Dorin, Sorry for the delay as I was busy with PI planning. Please find the attached all the required details.  I am also sending you separate email with system report that I have generated based on our support partner:- Orasi  Please let me know if anything else needed. Jenkins_Issue_Test1.zip Results21102022144439914_80.xml props21102022144439914.txt
          dbogdan7 Dorin Bogdan added a comment -

          Hi kumbashi,

          I tested on this Environment:

          • Windows Enterprise 10
          • UFT 2022 build 869 

          The test runs successfully from command line (as Admin), with this xml result:

          <testsuites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="uftRunnerRoot">
          <testsuite tests="1" failures="0" errors="0" package="HPToolsFileSystemRunner"> <testcase name="C:\Temp\Jenkins_Issue_Test1" report="C:\Temp\Jenkins_Issue_Test1\Report" time="71.1768158" classname="All-Tests.Test group" status="pass">
              <system-out>21/10/2022 21:31:48 Running: C:\Temp\Jenkins_Issue_Test1 Running test: C:\Temp\Jenkins_Issue_Test1 Test result: Passed uftReportDir is C:\Temp\Jenkins_Issue_Test1\Report2
              </system-out>
            </testcase>
          </testsuite>
          </testsuites> 

          If possible please retest from Command Prompt as Admin with your UFT 2021 R1 and the attached HpToolsLauncher.zip (extracted from hp-application-automation-tools-plugin 7.5).

          If it still fails, please try to test with UFT 2022 (collecting the UFT logs too).

          If it still fails, we have to find a common timeslot and schedule a support session with you online,

          dbogdan7 Dorin Bogdan added a comment - Hi kumbashi , I tested on this Environment: Windows Enterprise 10 UFT 2022 build 869  HpToolsLauncher.zip (extracted from hp-application-automation-tools-plugin 7.5 ) The test runs successfully from command line (as Admin), with this xml result: <testsuites  xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"   xmlns:xsd = "http://www.w3.org/2001/XMLSchema"  name= "uftRunnerRoot" > <testsuite tests= "1"  failures= "0"  errors= "0"  package= "HPToolsFileSystemRunner" > <testcase name= "C:\Temp\Jenkins_Issue_Test1"  report= "C:\Temp\Jenkins_Issue_Test1\Report"  time= "71.1768158"  classname= "All-Tests.Test group"  status= "pass" > <system-out> 21/10/2022 21:31:48 Running: C:\Temp\Jenkins_Issue_Test1 Running test: C:\Temp\Jenkins_Issue_Test1 Test result: Passed uftReportDir is C:\Temp\Jenkins_Issue_Test1\Report2 </system-out> </testcase> </testsuite> </testsuites> If possible please retest from Command Prompt as Admin with your UFT 2021 R1 and the attached HpToolsLauncher.zip (extracted from hp-application-automation-tools-plugin 7.5 ). If it still fails, please try to test with UFT 2022 (collecting the UFT logs too). If it still fails, we have to find a common timeslot and schedule a support session with you online,

          Hi Dorin,

          I have attached the files which you are requested to share.

          Kindly schedule working session call to discuss or demo the issue.

          Thanks,

          Srikanth Kumbashi

          props08112022124845876.txt

          Results08112022124845876_506.xml

          run_results.html

          kumbashi Srikanth Kumbashi added a comment - Hi Dorin, I have attached the files which you are requested to share. Kindly schedule working session call to discuss or demo the issue. Thanks, Srikanth Kumbashi props08112022124845876.txt Results08112022124845876_506.xml run_results.html
          dbogdan7 Dorin Bogdan added a comment -

          Hi kumbashi,

          In order to prioritize the request, I suggest to call for / open a support ticket here:
          https://www.microfocus.com/en-us/contact-support/stackb

          Please provide there a short summary (linked to JENKINS-69501) and ask for a high priority online session, and the support team will help you as soon as possible.

          Thank you for understaning.

          dbogdan7 Dorin Bogdan added a comment - Hi kumbashi , In order to prioritize the request, I suggest to call for / open a support ticket here: https://www.microfocus.com/en-us/contact-support/stackb Please provide there a short summary (linked to JENKINS-69501 ) and ask for a high priority online session, and the support team will help you as soon as possible. Thank you for understaning.

          People

            dbogdan7 Dorin Bogdan
            kumbashi Srikanth Kumbashi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: