Azure / load-testing

Automate azure load test through github actions
MIT License
17 stars 17 forks source link

Allow customization of test run display name #49

Closed tonybaloney closed 1 year ago

tonybaloney commented 1 year ago

The auto-generated display name for the test run makes it hard to work out (when there are a lot of runs) what each run was for.

export function getDefaultTestRunName()
{
    const a = (new Date(Date.now())).toLocaleString()
    const b = a.split(", ")
    const c = a.split(" ")
    return "TestRun_"+b[0]+"_"+c[1]+c[2]
}

This PR adds an optional parameter to the action to set the test run display name and the description.

ninallam commented 1 year ago

@radhikajain99 can you please verify this and merge the PR? Let me know and I will create a release and add to docs.

radhikajain99 commented 1 year ago

@radhikajain99 can you please verify this and merge the PR? Let me know and I will create a release and add to docs.

@ninallam This would add the 'loadTestRunName' and 'loadTestRunDescription' fields to the Github actions task. Should it be added here or should we add them to the loadtest YAML file?

ninallam commented 1 year ago

@radhikajain99 if we add it in the YAM, it would always be same for every run and users cannot modify the same. If it is in the action, this can be customized from the workflow. Ideally only test data should be in YAML and not the test run.