Skip to content Skip to sidebar Skip to footer

Currently Trying To Get My Smoketest.js To Run On A Different Url Depending On Parameters Provided On Azure Dev Ops (testcafe)

Currently running my automation from a pipeline please see yaml file below: jobs: - job: master pool: vmImage: ubuntu-latest steps: - task: NodeTool@0 in

Solution 1:

Azure Docs about defining variables state the following:

Notice that variables are also made available to scripts through environment variables.

So, you can use your variable with a dynamically created URL just by accessing the corresponding environment variable in the TestCafe test:

fixture("SmokeFixture")
    .page(process.env.WEBAPP)

Post a Comment for "Currently Trying To Get My Smoketest.js To Run On A Different Url Depending On Parameters Provided On Azure Dev Ops (testcafe)"