Can I load test results from an XML file

Jonathan Hickford's Avatar

Jonathan Hickford

03 Jun, 2014 08:24 AM

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?

  1. Support Staff 1 Posted by Feodor Fitsner on 03 Jun, 2014 04:44 PM

    Feodor Fitsner's Avatar

    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. 2 Posted by Jonathan Hickfo... on 04 Jun, 2014 11:21 AM

    Jonathan Hickford 's Avatar

    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

  3. Support Staff 3 Posted by Feodor Fitsner on 04 Jun, 2014 04:30 PM

    Feodor Fitsner's Avatar

    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. 4 Posted by Jonathan Hickfo... on 05 Jun, 2014 08:56 AM

    Jonathan Hickford 's Avatar

    Thanks - that's working for me using those two hooks!

    Build status

  5. 5 Posted by fahad shaikh on 22 Aug, 2014 12:53 PM

    fahad shaikh's Avatar

    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. 6 Posted by Jonathan Hickfo... on 22 Aug, 2014 12:59 PM

    Jonathan Hickford's Avatar

    I'm on holiday and a customer visit up until 27th of August. I'll get back to you as soon as I can.

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:47 AM.

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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM