Skip to content

Commit

Permalink
Update jmeter-load-test.yml
Browse files Browse the repository at this point in the history
removing payload stuff
  • Loading branch information
bryancross authored May 23, 2024
1 parent 0ed1152 commit a28603f
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/jmeter-load-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,14 @@ jobs:
pwd
- name: Print env
env:
MESSAGE: ${{ github.event.client_payload.envFile }}
MESSAGE: ./examples/catfact-coll.json
run: |
echo $MESSAGE
- name: Convert postman collection with environment
if: github.event.client_payload.envFile != ''
run: |
mkdir ./assets/${{ github.run_id}}
node ./bin/convert-postman-jmeter -p ${{ github.event.client_payload.collectionPath }} -j ./assets/${{ github.run_id }}/${{ github.run_id }}.jmx -o -v=${{ github.event.client_payload.variableStrategy }} -e ${{ github.event.client_payload.envFile }}
- name: Convert postman collection without environment
if: github.event.client_payload.envFile == ''
run: |
echo $MESSAGE
mkdir ./assets/${{ github.run_id}}
node ./bin/convert-postman-jmeter -p ${{ github.event.client_payload.collectionPath }} -j ./assets/${{ github.run_id }}/${{ github.run_id }}.jmx -o -v=${{ github.event.client_payload.variableStrategy }}
node ./bin/convert-postman-jmeter -p ./examples/catfact-coll.json -j ./assets/${{ github.run_id }}/${{ github.run_id }}.jmx -o -v=$resolve -e ./examples/catfact-env.json
- name: Run Stress Tests
run: |
cd ./apache-jmeter-5.6.3/bin
Expand Down Expand Up @@ -66,5 +58,5 @@ jobs:
echo "https://github.com/${{github.repository}}/blob/main/assets/images/screenshot_${{ env.GITHUB_RUN_ID }}.png?raw=true"
- name: Send results to postman
run: |
echo "Path: ${{ github.client_payload.collectionPath }} "
node ./bin/respond -w ${{ github.event.client_payload.workspaceID }} -u https://github.com/postman-solutions-eng/postman-jmeter/blob/main/assets/${{ github.run_id }}/screenshot_${{ github.run_id }}.png -r $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID -k ${{ secrets.POSTMAN_API_KEY }} -n $GITHUB_RUN_ID -c ${{ github.event.client_payload.collectionPath }} -b $GITHUB_WORKFLOW
echo "Path: ${{ ./examples/catfact-coll.json }} "
node ./bin/respond -w 774fda03-bf0a-4c99-b915-b7ecf1856162 -u https://github.com/postman-solutions-eng/postman-jmeter/blob/main/assets/${{ github.run_id }}/screenshot_${{ github.run_id }}.png -r $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID -k ${{ secrets.POSTMAN_API_KEY }} -n $GITHUB_RUN_ID -c ./examples/catfact-coll.json -b $GITHUB_WORKFLOW

0 comments on commit a28603f

Please sign in to comment.