Pabot: Jenkins plugin and noncritical parameter problem

134 views
Skip to first unread message

r...@ncdc.pl

unread,
Jun 15, 2015, 8:46:05 AM6/15/15
to robotframe...@googlegroups.com
Hi,

We are about to use Pabot to execute our regression tests using Jenkins plugin where the main test condition is to use --noncritical parameter.
The problem is that Jenkins is taking the output.xml file as a base to populate test results. Pabot while merging results using the '_report_results' function from pabot.py does not pass 'options' value into 'merge' method. That means we are loosing our 'non_critical' tag in the output.xml file so Jenkins doesn't show them.

For now we have done our little fix in the '_report_results' function in order to regenerate the output.xml file:

def _report_results(outs_dir, options, start_time_string):
    new_output_path = os.path.abspath(os.path.join(options.get('outputdir', '.'), options.get('output', 'output.xml')))
    output_path = os.path.abspath(os.path.join(options.get('outputdir', '.'), options.get('output', 'merge_output.xml')))
    merge(*sorted(glob(os.path.join(outs_dir, '**/*.xml')))).save(output_path)
    print 'Output_rob:  %s' % output_path
    #options['output'] = None # Do not write output again with rebot
    options['output'] = new_output_path # Do not write output again with rebot
    return rebot(output_path, **_options_for_rebot(options, start_time_string, _now()))


If there is no other dependencies can You please add similar solution to Pabot code so we can use it without our funny hack?

Mikko Korpela

unread,
Jun 18, 2015, 2:49:32 AM6/18/15
to robotframe...@googlegroups.com
Thanks for the debugging!

I'll try to get a new version out soon.
Reply all
Reply to author
Forward
0 new messages