Hello everyone, Im trying to run my cucumber test in headless mode. When it tries to navigate to my appian URL, the testcases will pass however when it tries to login, cucumber will throw a NullPointerException error. please see below for the stack trace:
Discussion posts and replies are publicly visible
Hello Rabiah,
Some questions,
* I assume this is happening with Chrome? do you have multiple profiles? are u using the same driver that comes with the installation of the cucumber?
* are you able to run it with head? does it works?
* which version of the cucumber for Appian are you using and which version of Appian are both 19.1?
* try to kill all the chromes drivers which could be open and additionally try to remove all the browsing history and everything possible to delete from the browser.
well try and let us know your answers so we can help you better
Jose
Hi Jose, thank you so much for your response.
Ans -> Its a standalone driver
Ans -> Yes
Ans -> 19.1
* try to kill all the chromes drivers which could be open and additionally try to remove all the browsing history and everything possible to delete from the browser. Ans -> The driver is unable to launch the chrome hence i think there were no chrome drivens being open
Anwyay, I have troubleshooted this problem. it seems that problem lies with the chromedriver itself. I have verified that all chrome depedancies have been installed correcrly but something wa smissing to lauch chrome. i have managed to find a chrome luancher script online and threw it in the chrome driver installed directory and it worked :) definitiely a tedious process and i will be finiding an easier solution to this
Would you happen to have more details on how you managed to run Cucumber headlessly?
Thanks,
Mat
Hi Could you explain how did u ran the cucumber heedlessly , I am also trying to achieve same
hello, sorry late reply. Im currently able to dockerized my Cucumber so its running headlessly at the moment. Create your docker environment, and load all the necessary files in the image, u will also have to locate your chrome driver there too. basically mirror whatever's in your local
Hi Rabiah,
Thanks for the reply
1. We are planning to run the test cases from jenkins . and will be moving the cucumber project to jenkin slave
2. Also is there any way to run this in headless way from local m/c
Thanks
Ajinkya
hello, sorry super late reply. Im not familiar with Jenkins. Currently im using Bamboo and its working properly there. i dont think it matters what CICD tools u use. And yes its possible to run on local mac. Could share more what exactly u are looking for?