Executing testcases from jenkins and getting error

24 views
Skip to first unread message

Ellendula Sainath

unread,
Apr 12, 2016, 1:04:05 AM4/12/16
to Jenkins Users
Hi Team,

We have automated few testcases and trying to execute the same testcases from jenkins and getting below error:

+ pybot -x junit.xml run.robot
==============================================================================
Run                                                                           
==============================================================================
sip-001                                                               | PASS |
------------------------------------------------------------------------------
sip-002                                                               | PASS |
------------------------------------------------------------------------------
Run                                                                   | PASS |
2 critical tests, 2 passed, 0 failed
2 tests total, 2 passed, 0 failed

 

 

Output:  /opt/bitnami/apps/jenkins/jenkins_home/jobs/integration-test/workspace/output.xml

[ ERROR ] Reading XML source '/opt/bitnami/apps/jenkins/jenkins_home/jobs/integration-test/workspace/output.xml' failed: ImportError: No module named expat; use SimpleXMLTreeBuilder instead


Here Testcases are passed but results junit.xml are not generating.


The same testcases if we execute from Ubuntu machine.. /path/run.robot. The Testcases passed and results are generating like junit.xml, output.xml etc.. 


Can anyone please guide me in resolving the above error which we got while executing from Jenkins.


Regards,

Sainath




 
Reply all
Reply to author
Forward
0 new messages