Skip to content

Commit f828190

Browse files
committed
Changed all occurrences of endpoint to hostAndPort
1 parent 147c2cb commit f828190

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ table includes the currently implemented options.
8484
| output | c:\\temp\\reports | Directory to store reports in.|
8585
| reportFileName | N/A | File name for the report. If omitted, the report will get a name based on the test job ID|
8686
| callback | http://localhost:8080 | The URL, to which the results will be posted|
87-
| environment | dev | Specify the The target environment for test job. Can not be used with **endpoint**|
88-
| endpoint | localhost:8080 | The endpoint to be used for HTTP requests sent by this test, in the format host:[port]. Can not be used with **environment**|
87+
| environment | dev | Specify the The target environment for test job. Can not be used with **hostAndPort**|
88+
| hostAndPort | localhost:8080 | The host and port to be used for HTTP requests sent by this test, in the format host:[port]. Can not be used with **environment**|
8989
| format | excel | Specify the file type of the report. Currently supported formats are json, junit, excel and pdf. The default format is junit|
9090
| proxyHost | 172.0.1.10 | Hostname or IP of the server to use as a proxy for outgoing requests (from TestEngine)|
9191
| proxyPort | 8888 | Port of the proxyHost to contact for outgoing requests (from TestEngine)|

bin/run_functions.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports.dispatcher = function (args) {
3030
'securitytest',
3131
'tags',
3232
'callback',
33-
'endpoint',
33+
'hostAndPort',
3434
'environment',
3535
'=printReport',
3636
'output',
@@ -59,7 +59,7 @@ module.exports.dispatcher = function (args) {
5959
function printModuleHelp() {
6060
util.error("Usage: testengine run <command>");
6161
util.error("Commands: ");
62-
util.error(" project [testsuite=<name>] [async] [skipdeps] [priorityJob] [testcase=<name>] [securitytest=<name>] [timeout=<seconds>] [tags=(tag1,tag2)] [output=<directory>] [printReport] [reportFileName=<filename>] [format=junit/excel/json/pdf] [environment=<environment name>] [endpoint=<host:port>] [callback=<url>]");
62+
util.error(" project [testsuite=<name>] [async] [skipdeps] [priorityJob] [testcase=<name>] [securitytest=<name>] [timeout=<seconds>] [tags=(tag1,tag2)] [output=<directory>] [printReport] [reportFileName=<filename>] [format=junit/excel/json/pdf] [environment=<environment name>] [hostAndPort=<host:port>] [callback=<url>]");
6363
util.error(" [projectPassword=<password>] [proxyHost=<hostname>] [proxyPort=<port>] [proxyUser=<username>]");
6464
util.error(" [proxyPassword=<password>] <filename>");
6565
util.error(" help");
@@ -76,8 +76,8 @@ function conflictingOptionsCheck(options) {
7676
}
7777
}
7878

79-
if(('endpoint' in options) && ('environment' in options)) {
80-
util.printErrorAndExit('Error: environment cannot be used together with endpoint');
79+
if(('hostAndPort' in options) && ('environment' in options)) {
80+
util.printErrorAndExit('Error: environment cannot be used together with hostAndPort');
8181
}
8282

8383
if (('testcase' in options)
@@ -188,7 +188,7 @@ function getQueryStringFromOptions(options) {
188188
case 'callback':
189189
queryStringPart = 'callback=' + encodeURI(options[key]);
190190
break;
191-
case 'endpoint':
191+
case 'hostAndPort':
192192
queryStringPart = 'hostAndPort=' + encodeURI(options[key]);
193193
break;
194194
case 'proxyUser':

0 commit comments

Comments
 (0)