selenium Jenkins integration issues

80 views
Skip to first unread message

Kancharla Prasad

unread,
Mar 15, 2016, 6:10:42 AM3/15/16
to Jenkins Users
Hi All,

I am new to Jenkins, I configured jenkins with testng (my selenium project).

When i build the project getting this:
===============================================
Suite
Total tests run: 6, Failures: 0, Skips: 6
Configuration Failures: 1, Skips: 1
===============================================

Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
_________________________________________________________________________

This means, atleast jenkins is able to get my project details to execute.

When i run my bat file manually, it launches the browser but fails to navigate to application URL.

any suggestions please, how to fix this issue.

Thanks,
L V Prasad. K

Eric Smalling

unread,
Mar 15, 2016, 4:00:42 PM3/15/16
to Jenkins Users
Can you post the contents of your .bat file?  (If it's large, a gist.github.com post would be nice)

Prasad.L.V

unread,
Mar 16, 2016, 12:00:03 AM3/16/16
to jenkins...@googlegroups.com
Thank you Eric, please find my bat file data.

java -cp bin;lib/* org.testng.TestNG testng.xml

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/UaGwfNddVKc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9105f43d-91d8-4d90-8988-411b4c8ca6ec%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Duarte Carreira

unread,
Mar 16, 2016, 1:49:22 PM3/16/16
to Jenkins Users
your problem is likely in your xml... can you post just the starting lines?

Prasad.L.V

unread,
Mar 17, 2016, 12:18:48 AM3/17/16
to jenkins...@googlegroups.com


Thank you Duarte.

please find my Testng xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite" parallel="none">
  <test name="Test">
    <classes>      
      <class name="com.copmanyname.productname.applicationname.testcases.Admin_General"/>
      <class name="com.copmanyname.productname.applicationname.testcases.EUM_Overview"/>
      <class name="com.copmanyname.productname.applicationname.testcases.ClenUp"/>
    </classes>
  </test> <!-- Test -->
</suite> <!-- Suite -->

Duarte Carreira

unread,
Mar 17, 2016, 6:14:55 AM3/17/16
to Jenkins Users
well I was wrong... your problem is not in the testing.xml... obviously...

if you run your tests "outside" jenkins you say they don't do what you expect. so you have to debug your tests... at the very least use println often to get feedback on whats going on. I don't use testng so i am not the most qualified person to help you, but it seems to me your tests are not working, nothing wrong with jenkins...

Prasad.L.V

unread,
Mar 20, 2016, 11:48:57 PM3/20/16
to jenkins...@googlegroups.com
Thank you for your time Duarte, will research more to fix it.

Reply all
Reply to author
Forward
0 new messages