flood-io / element

💦Load test your app using real web browsers
https://element.flood.io
Apache License 2.0
350 stars 43 forks source link

Cannot run Flood Element 2.x script on Flood.io #594

Open justinfiore opened 1 year ago

justinfiore commented 1 year ago

Describe the bug I have a Flood Element script that is running locally in Element 2.0.4 I upload to the Flood UI (also tried via API) this script, my environment file and my test-data file. I launch the flood on "on-demand" instances. Instances launch, attempt to run my test and fail. The flood.log says it cannot find my test script:

 cat flood-logs/flood/flood.log

> @flood/grid@2.0.0 start /app
> element agent start "/data/flood/files/field-dashboard-load-test.perf.ts"

> Error! An unexpected error occurred!
  Error: Test script '/data/flood/files/field-dashboard-load-test.perf.ts' does not exist
    at Object.checkFile (/app/node_modules/@flood/element-cli/dist/src/cmd/common.js:8:16)
    at /app/node_modules/@flood/element-cli/dist/src/cmd/agent/start.js:35:38
    at Object.customChecks (/app/node_modules/yargs/build/lib/validation.js:174:26)

field-dashboard-load-test.perf.ts is one of the files I uploaded (that contains my test) I can see that the contents of that file in the downloaded tar.gz archive in the files directory is correct.

To Reproduce Steps to reproduce the behavior:

  1. Upload a Typescript file that works on Element 2.0.4 to Flood.io
  2. Attempt to run it.
  3. It fails

Expected behavior It not fail and actually execute the test.

Screenshots

Desktop (please complete the following information):

Additional context I have already asked support to upgrade my account to use Flood 2.x (which they said they did).