18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Sahi + TeamCity + Ant?

michellemichelle Members
edited July 2012 in Sahi - Open Source
Hello, I want to run Sahi tests as part of my TeamCity continuous integration.

Is it possible to do this with Ant, and if so could anyone give an example (or reference to) the configuration/setup to do this?

Thank-you in advance,
Michelle

Comments

  • Hi every body !!

    I have same question !! actually i seek a good solution for doing continuous integration with SAHI OS, ANT JIRA and bamboo!!!
    Is it possible!!
    i see that selenium is supported by Bamboo for Test Automating...did i return to selenium!!

    Thank you
  • I am looking to do the same as Michelle. Ideally so that each Sahi test within the suite shows up in TeamCity as its own test. Has anybody already written an Ant script to do this?
  • How does TeamCity evaluate test results? Does ist read the results from a XML or CSV file?
    For starting suites with ant have a look at
    http://sahi.co.in/w/integrate-with-jenkins
    http://sahi.co.in/w/Running+multiple+tests+in+batch+mode+V3.0
  • TeamCity can evaluate tests by picking up on output to the command line:

    I can't post links, but on the Jetbrains site there is a page called "Build Script Interaction with TeamCity".

    If it were possible to echo before/after each test in the suite it would be fairly trivial to set up. I'm not sure whether Sahi outputs the individual test success/failure until the suite is complete though?

    Alternatively, the output log called be used to output the messages to TeamCity using a simple bit of code.
  • Well.. afaik the Junit Writer outputs after each test. With a script and some basic file parsing, TestCity might read the junit xml file. As long as you can write to stdout. Do you get what I mean or shall I explain further?
  • mb2mb2 Members
    edited September 2012
    Thanks for the reply. You were correct that it was really easy to get working.

    Just for the record incase anybody else views this thread...

    Modify the sahi task in ant to have a report type of junit

    <report type="junit" logdir="C:\Sahi\userdata\logs\playback\UITests"/>

    Then in TeamCity add a build feature of type 'XML report processing' and set the report type to 'Ant JUnit'. Under monitoring rules enter:

    +:C:/Sahi/userdata/logs/playback/UITests/*.xml

    This is all you need to do for TeamCity to pick up on the results.
Sign In or Register to comment.