How can i execute API and UI test suites through Jenkins,
Current shell command which i use has browser type=Chrome headless part of it, if i include API test case part of the test suite, does that work or what is the option?
Pls guide me.
How can i execute API and UI test suites through Jenkins,
Current shell command which i use has browser type=Chrome headless part of it, if i include API test case part of the test suite, does that work or what is the option?
Pls guide me.
hi,
I use API key also,My concern was ,as the shell command has browser type defined,How does my api test case part of the same test suite is executed?
hi,
this is how I am running it with Jenkins
katalonc -noSplash -runMode=console -projectPath=“C:\Users\fitim\KatalonProjectFromGit\KatalonProject\KatalonProject.prj” -retry=0 -testSuitePath=“Test Suites/RegressionTestSuite” -executionProfile=“default” -browserType=“Chrome (headless)” -apiKey=“d442fd1d-ecf9-4c87-99d6-7bca550a345c”
I am using same as above,Thanks
Hi @saminkit,
You can still execute your API test cases if the defined browser type in your command is Chrome. An API test case just need basic configuration, so any values you define for “browserType” argument should be fine. However, if you choose your browserType to be “Web Service”, your test cases involving web ui testing will fail to execute, as they are not set up with proper configuration towork with web drivers.
Thanks for your valuable comments, if i use browserType=Web Service,My test suite should contain only Api tests for execution right?
That is correct. However, API tests run fine on browsers such as Firefox and Chrome too. So you can execute a suite containing both API and UI tests using Chrome/Firefox/supported browser.