Selenium communication with QC/ALM
I remember seeing a thread where someone said that they got Selenium to work with QC. Someone asked for the code and then there was silence on the topic.
Well I was just asked by a Selenium team how to get results from a Selenium Run into QC.
I'm thinking to do this through the QC API. I usually work from a vbs file, Excel, QTP to talk with QC. Could this be done from Java?
Does anyone have sample code to share?
Yes, we used to do this with the QC API before we switched from QC to Spira. We had a vbs driverscript that would extract test details(steps/params) into a csv and start the selenium test Selenium(through java command line call). The selenium test would then write it's report to the c:\ of the execution machine. Then after the run finished the driverscript would upload that result file and any screenshots to QC through the API.
QC API side it was basically using the RunFactory to create a run, add a run step with pass or fail based on output from Selenium, then post a run attachment with the result file.
I have heard of Spira before. What about it is better/worse than QC?
Using .vbs in the middle is a great idea.
I don't need to do this at the time, but if I run into it again, I will know the starting point.
To put it shortly:
Spira had all the QC features we needed and a conversion tool.
Pure web interface that runs in any browser and mobile.
Even with them hosting it for us, it's a small fraction of the cost.