-1

I have created an Azure pipeline wherein I make use of CMD task to trigger a Load Runner Scenario on a machine which is hosted On-Premises but I am getting failure for the same. Please find the setup details below

Load Runner Controller:- My Personal Laptop (No License, I am using LR community Free version as this is a POC)

Azure Pipeline:- On-Cloud

Scenario:- Azure Pipeline will trigger the CMD task which will then trigger the Load Runner Scenraio on my local machine

I have added my laptop to the Agent Pools-> Default Pools for the Azure Project I created. I can see my machine under Agents as Online and I can execute a series of other commands from Azure CMD task on my Laptop, the issue is only with LoadRunner execution

enter image description here

I find it strange cause I can execute the same command locally on my laptop using Command prompt perfectly

There is an issue with this command when I execute it from Azure Pipeline!! I can run other commands from the pipeline without any issue!

Please find below the snapshot of the pipeline cmd task

enter image description here

I am using the below command for triggering a Load Runner Scenraio

LR Installation Location:- cd C:\Program Files (x86)\Micro Focus\LoadRunner\bin

LoadRunner Execution Command:- CLIControllerApp.exe -TestPath C:\temp\LR_Scenarios\MSD365_Demo.lrs -Run -ResultName C:\temp\LR_Results

But I am getting the error as Wait CLICntrlService_Ready_Event timeout! Please find the error snap below.

enter image description here

I did find one thread for this issue where they said that- you need LR license to use the CLI tool!! I dont see any invalid license code in wlrun log file but I feel its related to this license issue. Please find the link below which I reffered

https://community.microfocus.com/t5/LoadRunner-Professional-User/Licensing-Error-with-LoadRunner-CLIControllerApp-exe/m-p/2702193

I have also done multiple re-installation of Load Runner on my machine so I dont think it has anything to do with installation.

Need help, do let me know if anyone else has faced this issue and have a solution other than licensing cause I am doing an RnD piece and cant buy a license. Thanks

Pankaj Harde
  • 55
  • 1
  • 11
  • Have you checked my reply? Is it helpful? – Cece Dong - MSFT Aug 12 '20 at 01:47
  • Hi Cece Dong, Apologies for delayed response I did try all what you mentioned but they didn't work and I found a similar issue listed on community forum whichpointed out to License issue so I kind of gave up on this one. My next step is to create a distributed setup where Jenkins will be on one machine and I will add a Controller Machine as a slave to jenkins and trigger a test run on the controller machine. https://community.microfocus.com/t5/LoadRunner-Professional-User/Licensing-Error-with-LoadRunner-CLIControllerApp-exe/m-p/2702193 – Pankaj Harde Aug 18 '20 at 09:12
  • The reason I am creating a distributed setup is to ensure that I can trigger the build remotely but when it comes to triggering th build from the cloud on a local on premise machine there is soe issue leading to timeout. Which I am thinking is due to the license as mentioned at the link shared in the comment above. Thanks – Pankaj Harde Aug 18 '20 at 09:25

3 Answers3

1

I have recently successfully tried integrating using LoadRunner professional tests (https://marketplace.visualstudio.com/items?itemName=Micro-Focus.LoadRunnerProfessionalTestsAutomation) and it worked like charm, let me know the exact error and i might help you. Its simple enough.

Here is link to one of the issue i faced and how i solved it.
Retrieving the COM class factory for component Access Denied Error

Vishal Chepuri
  • 306
  • 5
  • 26
0

It seems like an installation or configuration problem of Micro Focus's LoadRunner Enterprise product.

For LoadRunner Enterprise issue, please re-ask it on the official forum: https://community.microfocus.com/t5/LoadRunner-Enterprise/ct-p/PerformanceCenter

tedyyu
  • 587
  • 6
  • 12
  • The same command work when I run it locally from CMD and from jenkins on my local machine. So I am not sure if its an installation issue, plus I re-did the installation multiple times just to rule that out – Pankaj Harde Aug 18 '20 at 09:09
0

In order to narrow down the issue, you may try the following items:

  1. Set variable system.debug to true in your pipeline to see whether you can get more log.

  2. Check the account that runs the Azure Pipelines Agent service, and use this account to run the command locally to see whether you can get a successful result.

  3. Check the following extension to see whether they can help you:

    https://marketplace.visualstudio.com/search?term=LoadRunner&target=AzureDevOps&category=All%20categories&sortBy=Relevance

Cece Dong - MSFT
  • 29,631
  • 1
  • 24
  • 39
  • I'd rather go with Plugins available for Azure Devops to run loadrunner tests, as it provides more features and easier to setup. – Vishal Chepuri Aug 17 '20 at 15:32
  • @Cece Dong: Apologies for delay I didn't see anyone responding to this thread and hence closed it post fiding a smiliar issue listed at the load runner Community Forum https://community.microfocus.com/t5/LoadRunner-Professional-User/Licensing-Error-with-LoadRunner-CLIControllerApp-exe/m-p/2702193 I did check the account that runs the Azure Devops pipeline and I gave it Admin Privilages on the Agent machine it does triggers the initiation but the controller.cli fails to start and times out I already used Load Runner Professional extension frm the market place but it fails to work. – Pankaj Harde Aug 18 '20 at 09:06
  • @VishalChepuri:- I did try usig the plug in for Load Runner to trigger tests but it did not work and ths I tried creating simple pipeline with commandline call to trigger the test – Pankaj Harde Aug 18 '20 at 09:08
  • 1
    @PankajHarde I have recently successfully tried integrating using loadRunner professional tests and it worked like charm, let me know the exact error and i might help you. Its simple enough. Here is link to one of the issue i faced and how i solved it. https://stackoverflow.com/questions/63017937/retrieving-the-com-class-factory-for-component-access-denied-error – Vishal Chepuri Aug 19 '20 at 07:44
  • @Vishal Chepuri, thanks for looking into this and reverting back, I tried what you shared on the link above but it did not solve the problem. I am anyways using the CLIControllerApp.exe -TestPath C:\temp\LR_Scenarios\MSD365_Demo.lrs -Run -ResultName C:\temp\LR_Results command. I have edited my problem statement above to give a better idea of what I am doing. Requesting you to please see if you can help or provide the steps which you implemented at your end if mine are incorrect. Thanks – Pankaj Harde Aug 19 '20 at 10:42
  • @Vishal Chepuri, I guess you were using the "Execute Load Runner Professional Test Plugin" and for that you made settings at "https://stackoverflow.com/questions/63017937/retrieving-the-com-class-factory-for-component-access-denied-error". I tired this plug in before but it was failing but after your suggestion I though of using this plugin again and it "Works like a Charm" Amazing.So this plugin is now working the only issue now is, for reason it did not capture any results value. Will keep you posted – Pankaj Harde Aug 19 '20 at 11:50
  • 1
    Glad i could help. Will copy the same to Answers. – Vishal Chepuri Aug 20 '20 at 10:12
  • @PankajHarde Since Vishal's reply helped you, you could [Accept his reply as an Answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work), this can be beneficial to other community members reading this thread. – Cece Dong - MSFT Aug 21 '20 at 01:15
  • Thanks @Vishal Chepuri and @ Cece Dong, I will Mark the answer which Vishal has shared and I will also update my question with the Entire steps I did to get this working. I also got few error regarding execution policies which I fixed following the steps at the below link https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7 Someone down rated my Question :(. I will update the entire query and provide all the steps as I finish the documentation on this piece. Thanks again! – Pankaj Harde Aug 21 '20 at 05:41