Skip to content

Commit

Permalink
update process arg
Browse files Browse the repository at this point in the history
  • Loading branch information
AhadAli01 committed Mar 3, 2024
1 parent 2bafa57 commit a810bfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/teaStorek6TestScript1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { group, sleep } from 'k6';

import http from 'k6/http';

const BASE_URL = `http://${__ENV.HOST || 'localhost'}:8080/tools.descartes.teastore.webui`;
const BASE_URL = `http://${process.argv[process.argv.length-1] || 'localhost'}:8080/tools.descartes.teastore.webui`;

const groupResponseTimes = {};

Expand Down
7 changes: 7 additions & 0 deletions Scripts/temp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const BASE_URL = `http://${process.argv[process.argv.length-1] || 'localhost'}:8080/tools.descartes.teastore.webui`;

// const BASE_URL = process.argv[process.argv.length-1];
console.log(BASE_URL);

// const a = 1;
// console.log(1);

0 comments on commit a810bfb

Please sign in to comment.