Can I load test results from an XML file
Hi,
I'm running an MS Build script which builds and runs CI operations on my database, including running tSQt unit tests. This process creates an XML file with jUnit test results. Is there any way I can make Appveyor pick up these results and load them into the test results section?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 03 Jun, 2014 04:44 PM
Hi Jonathan,
I think you can try using Build Agent API (XML parsing is on yours): http://www.appveyor.com/docs/build-agent-api#add-test
In the future, we might offer bulk upload of test results for popular testing frameworks (xUnit, MSTest, NUnit) and we already have a working prototype for that.
Let me know if you have any questions.
2 Posted by Jonathan Hickfo... on 04 Jun, 2014 11:21 AM
Thanks Feodor. Looks like I should be able to do what I need with the API and PowerShell, however I can't work out where to run this script in the pipeline.
When all my tests pass, my PowerShell script is run in the 'After Build' slot.
However failing tests mean that my build exits with an error (which I would expect). But this looks like this means that the 'After Build' PowerShell doesn't run. I've also tried running the PowerShell script from the 'Test Script' (in the Test section when in Script mode).
Is there somewhere else I can run this script from to make sure it's always run after the build, regardless of if it fails/succeeds ?
Thanks
Support Staff 3 Posted by Feodor Fitsner on 04 Jun, 2014 04:30 PM
Good point. It seems we are missing sort of "On build complete" section which runs on both success and error. I will add an issue for that.
For now I think you can call parsing function in both "on build success" and "on build error". Let me know if that works for you.
4 Posted by Jonathan Hickfo... on 05 Jun, 2014 08:56 AM
Thanks - that's working for me using those two hooks!
5 Posted by fahad shaikh on 22 Aug, 2014 12:53 PM
Hi,
Check the following link for learning Visual Studio load test
http://testingtoolstecniques.blogspot.com/2014/08/adding-groovy-assertions-in-soap-ui.html
6 Posted by Jonathan Hickfo... on 22 Aug, 2014 12:59 PM
I'm on holiday and a customer visit up until 27th of August. I'll get back to you as soon as I can.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:47 AM.