Azure Load testing cannot create a new test

HTajdar 0 Reputation points
2023-06-28T14:31:30.3866667+00:00

I have a yaml file for test config as follows:

version: v0.1
testId: NAME
testPlan: sampleTest
description: 'Load Test'
engineInstances: 1
failureCriteria:
  - avg(response_time_ms) > 15000
  - percentage(error) > 10

and in my pipeline yaml file I have AzureLoadTest@1 as following:

   - task: AzureLoadTest@1
      inputs:
        azureSubscription: ${{ connection }}
        loadTestConfigFile: '$yaml path'
        resourceGroup: ${{ ResourceGroup }}
        loadTestResource: ${{ TestResource }} 
         env: ...

for some reason the pipeline created the load test in one resource group and as long as the testId is the same value as the one which is created the pipeline passes but if I wanna change the testId or run the pipeline with a new resource group it keeps failing with this, I also went back to the commit that the test got created initially and tried to create a new test with a new testId, I git the same error

error:
`{ error:
   { code: 'TestNotFound',
     message: 'Test couldn\'t find with given identifier NAME',
     target: null,
     details: null } }
##[error]Error in getting the test.`

is there a solution to solve this?

the azure load testing doc shows that if the testId does not exist it should create one https://video2.skills-academy.com/en-us/azure/load-testing/reference-test-config-yaml

Azure Load Testing
Azure Load Testing
An Azure service that enables developers and testers to generate insights on how to improve the performance, scalability, and capacity usage of their application
58 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.