-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: get jwt from token * chore: update openapi package * feat: improvements to allow using app.tracetest.io * docs: add doc on how to run k6 using https://app.tracetest.io * feat: Adding Cloud Support * feat: Adding Cloud Support * feat: Adding Cloud Support * feat: Adding Cloud Support * feat: Adding Cloud Support * feat: fixing test run link --------- Co-authored-by: Matheus Nogueira <[email protected]>
- Loading branch information
1 parent
2c72e7e
commit 0360da7
Showing
135 changed files
with
19,021 additions
and
6,588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Http, Tracetest } from "k6/x/tracetest"; | ||
import { sleep } from "k6"; | ||
|
||
export const options = { | ||
vus: 1, | ||
duration: "5s", | ||
}; | ||
|
||
const http = new Http(); | ||
const testId = "c80sJ_4SR"; | ||
const tracetest = Tracetest(); | ||
tracetest.updateFromConfig({ | ||
api_token: "your-api-token", | ||
}); | ||
|
||
export default function () { | ||
const url = "http://localhost:8081/pokemon?take=5"; | ||
const response = http.get(url); | ||
|
||
tracetest.runTest( | ||
response.trace_id, | ||
{ | ||
test_id: testId, | ||
variable_name: "TRACE_ID", | ||
should_wait: true, | ||
}, | ||
{ | ||
id: "123", | ||
url, | ||
method: "GET", | ||
} | ||
); | ||
|
||
sleep(1); | ||
} | ||
|
||
export function handleSummary() { | ||
return { | ||
stdout: tracetest.summary(), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.