Azure DevOps pipeline integration two different projects?

Ask general questions here.
mrt
Posts: 257
Joined: Mon Mar 16, 2020 11:31 am

Azure DevOps pipeline integration two different projects?

Post by mrt » Tue Jun 08, 2021 4:09 pm

Dear folks,

I just followed this documentation to let Ranorex tests run in Azure DevOps pipeline after every commit:
https://www.ranorex.com/help/latest/int ... o-project/
which works flawlessly.

But, following this documentation (and if I understood it right) it is necessary to put the development project of the application and the Ranorex solution in the same project - which is something I do not like.

Does anyone of you know if it is possible to keep the application and the Ranorex solution separated, in two different projects/respositories?

thank you, BR mrt

Jacob
Certified Professional
Certified Professional
Posts: 120
Joined: Mon Mar 22, 2021 10:01 pm

Re: Azure DevOps pipeline integration two different projects?

Post by Jacob » Tue Jun 08, 2021 9:43 pm

Hi mrt!

To my knowledge this is possible so long as both repos are in the same organization. Here's some better documentation from Microsoft that may help out.

--Jacob
Image

mrt
Posts: 257
Joined: Mon Mar 16, 2020 11:31 am

Re: Azure DevOps pipeline integration two different projects?

Post by mrt » Wed Jun 09, 2021 10:58 am

Thanks Jacob, I will have a closer look.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Azure DevOps pipeline integration two different projects?

Post by odklizec » Wed Jun 09, 2021 11:12 am

Hi,

Here is an example of pipeline (its initial part), in which I'm doing checkout from two different projects. Hope this helps?

Code: Select all

schedules:
  - cron: "30 14 * * *"
    always: true
    branches:
      include:
        - master

trigger:
  none

resources:
  repositories:
  - repository: CommonLibs_TA
    type: git
    name: CompanyOrg/CommonLibs_TA

jobs:
- job: CimarronTA
  timeoutInMinutes: 0
  pool:
    name: CPRAN04

  steps:
  - checkout: self
  - checkout: CommonLibs_TA
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

mrt
Posts: 257
Joined: Mon Mar 16, 2020 11:31 am

Re: Azure DevOps pipeline integration two different projects?

Post by mrt » Wed Jun 09, 2021 12:35 pm

I will check that.

Has anyone experience with variable values passing from pipeline to Ranorex?
I am thinking of e.g. the baseURL where to run the Ranorex tests.
When running from different projects each could have its own pipeline with baseURL parameter, but I have no clue how to pass this to Ranorex execution (if possible at all).

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Azure DevOps pipeline integration two different projects?

Post by odklizec » Wed Jun 09, 2021 12:43 pm

Hi,

Basically, you must create a pipeline variable and pass it to test as shown on below image:
DevOpsVars.png
In your case, you need to create a global parameter in test suite and then use "/pa:" command line parameter to pass the pipeline variable to test.

Pipeline variable can be declared also directly within the pipeline:

Code: Select all

variables:
- name: RXRUNCONFIGURATION
  value: Development
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

mrt
Posts: 257
Joined: Mon Mar 16, 2020 11:31 am

Re: Azure DevOps pipeline integration two different projects?

Post by mrt » Wed Jun 09, 2021 12:56 pm

Wow great, thanks!