Description
Describe the bug
Load test cannot find the JMX file referenced by my config.yml on Windows runners. Works as expected on Linux runners. On Windows it fails with the message: Error: File not found loadtest\quick_test.jmx
.
I need to use Windows for my self-hosted runners, so I would like this to work on Windows.
To Reproduce
Steps to reproduce the behavior:
- Create a load-test actions workflow
- Set the
runs-on:
towindows-2019
- Run the worklfow
- See error
Error: File not found loadtest\quick_test.jmx
name: Azure Load Test
on:
workflow_dispatch:
permissions:
id-token: write # This is required for requesting the JWT
jobs:
# This job runs successfully
deploy-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 'Az CLI login'
uses: azure/login@v1
with:
client-id: ${{ secrets.AZ_CLIENT_ID }}
tenant-id: ${{ secrets.AZ_TENANT_ID }}
subscription-id: ${{ secrets.AZ_SUBSCRIPTION_ID }}
- name: 'Azure Load Testing'
uses: azure/load-testing@v1
with:
loadTestConfigFile: 'loadtest/config.yaml'
loadTestResource: 'jcantosz-load-test'
resourceGroup: 'jcantosz'
# This job fails
deploy-windows:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 'Az CLI login'
uses: azure/login@v1
with:
client-id: ${{ secrets.AZ_CLIENT_ID }}
tenant-id: ${{ secrets.AZ_TENANT_ID }}
subscription-id: ${{ secrets.AZ_SUBSCRIPTION_ID }}
- name: 'Azure Load Testing'
uses: azure/load-testing@v1
with:
loadTestConfigFile: 'loadtest/config.yaml'
loadTestResource: 'jcantosz-load-test'
resourceGroup: 'jcantosz'
Expected behavior
I expect the load test to run on Windows the same way it does on Linux
Screenshots
If applicable, add screenshots to help explain your problem.
Running load tests from Windows
Running same load test from Linux
Desktop (please complete the following information):
- OS: Windows
- Version 2019
Additional context
Add any other context about the problem here.
Test config and jmx can be found here
Workflow for testing can be found here