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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

Recent Discussions

17 Jun, 2018 04:04 PM
16 Jun, 2018 08:06 PM
16 Jun, 2018 07:30 PM
16 Jun, 2018 09:22 AM
15 Jun, 2018 09:31 PM

 

15 Jun, 2018 08:31 PM
15 Jun, 2018 04:29 PM
15 Jun, 2018 12:39 PM
15 Jun, 2018 12:37 PM
15 Jun, 2018 08:21 AM
14 Jun, 2018 12:44 AM