tag:help.appveyor.com,2012-11-13:/discussions/questions/307-can-i-load-test-results-from-an-xml-fileAppVeyor: Discussion 2018-10-19T08:16:34Ztag:help.appveyor.com,2012-11-13:Comment/332442632014-06-03T16:44:59Z2014-06-03T16:44:59ZCan I load test results from an XML file<div><p>Hi Jonathan,</p>
<p>I think you can try using Build Agent API (XML parsing is on
yours): <a href=
"http://www.appveyor.com/docs/build-agent-api#add-test">http://www.appveyor.com/docs/build-agent-api#add-test</a></p>
<p>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.</p>
<p>Let me know if you have any questions.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332442632014-06-04T11:21:20Z2014-06-04T11:21:21ZCan I load test results from an XML file<div><p>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.</p>
<p>When all my tests pass, my PowerShell script is run in the
'After Build' slot.</p>
<p>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).</p>
<p>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
?</p>
<p>Thanks</p></div>Jonathan Hickford tag:help.appveyor.com,2012-11-13:Comment/332442632014-06-04T16:30:53Z2014-06-04T16:30:53ZCan I load test results from an XML file<div><p>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.</p>
<p>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.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332442632014-06-05T08:56:12Z2014-06-05T08:56:13ZCan I load test results from an XML file<div><p>Thanks - that's working for me using those two hooks!</p>
<p><a href=
"https://ci.appveyor.com/project/jonathanhickford/appveyordemo"><img alt="Build status"
src=
"https://ci.appveyor.com/api/projects/status/o4yl3dwwmlrat93w"></a></p></div>Jonathan Hickford tag:help.appveyor.com,2012-11-13:Comment/332442632014-08-22T12:53:27Z2014-08-22T12:53:28ZCan I load test results from an XML file<div><p>Hi,<br>
Check the following link for learning Visual Studio load test<br>
<a href=
"http://testingtoolstecniques.blogspot.com/2014/08/adding-groovy-assertions-in-soap-ui.html">
http://testingtoolstecniques.blogspot.com/2014/08/adding-groovy-ass...</a></p></div>fahad shaikhtag:help.appveyor.com,2012-11-13:Comment/332442632014-08-22T12:59:48Z2014-08-22T12:59:48ZCan I load test results from an XML file<div><p>I'm on holiday and a customer visit up until 27th of August.
I'll get back to you as soon as I can.</p></div>Jonathan Hickford