Skip to content

Instantly share code, notes, and snippets.

@jollychang
Created July 2, 2014 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jollychang/cc68751050fd811728f6 to your computer and use it in GitHub Desktop.
Save jollychang/cc68751050fd811728f6 to your computer and use it in GitHub Desktop.
robotframework + selenium grid parallel(http://www.gnu.org/software/parallel/) run and generate report
rm -rf static/webtest_report/*
find . -iname "test*.txt" | sed -e "s/_code//g" | xargs grep -l " core" | parallel --tty -j15 pybot -v GRAB_SERVER_ERROR:no -v SHIRE_PATH:`pwd` -v GRAB_SERVER_ERROR:NO -v remote:yes -v DEFAULT_INIT_TIMEOUT:60 -v AJAX_TIMEOUT:15 -v NOT_INIT:yes -v DEFAULT_TIMEOUT:60 `python ./shireconfig.py --webtest` -i core --timestampoutputs --outputdir static/webtest_report/{} {} \; {0..255}\>/dev/null
cd static/webtest_report
xml_list=`find . -iname '*.xml'`
rebot --name Webtest --output ./output.xml $xml_list
find . -iname '*.png*' -exec cp {} ./ \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment