I'm trying to setup a nice and customizable testing environment for my company using TestRail + Travis CI + a Selenium-based testing app. I want to be able to use the Travis CI Api v3 to trigger the Node.JS app to run. Ideally I'd be able to specify an email / password in the API request that the Node app will use to do all the tests with. I'm going to use TestRail's UI Script to trigger the Travis CI Api with the correct params.
Currently I have lots of scripts
in the package.json
file that runs the tests in certain environments. The conf.js
file parses these params and sets up the application accordingly.
"test:susa:prod:b2c": "node node_modules/protractor/bin/protractor ./conf.js --disableChecks=flag --params.region=susa --params.run=prod --params.app=b2c --params.conf=headlesschrome",
"test:susa:qa:admin": "node node_modules/protractor/bin/protractor ./conf.js --disableChecks=flag --params.region=susa --params.run=qa --params.app=corp --params.conf=headlesschrome",
"test:susa:prod:corp": "node node_modules/protractor/bin/protractor ./conf.js --disableChecks=flag --params.region=susa --params.run=prod --params.app=admin --params.conf=headlesschrome"
It would be really nice if I could also pass these params
in via the Travis CI Api also.