Spiratest and JUnit Automated Tests

Wednesday, February 12, 2014 12:57:46 PM
I'm trying to set up a connection between Spiratest and my automated tests (Thucydides/Selenium/Junit).
But I have no connection so far.

If I debug my test, it doesn't reach the code that is responisble for the connection:


import static org.junit.Assert.*;
import junit.framework.JUnit4TestAdapter;

import org.junit.Test;
import org.junit.runner.JUnitCore;

import com.inflectra.spiratest.addons.junitextension.SpiraTestCase;
import com.inflectra.spiratest.addons.junitextension.SpiraTestConfiguration;
import com.inflectra.spiratest.addons.junitextension.SpiraTestListener;

@SpiraTestConfiguration(

url = "http://XXXX/SpiraTest", login = "administrator", password = "XXXX", projectId = 12, releaseId = -1, testSetId = -1

)
public class Test1 {

    @Test
    @SpiraTestCase(testCaseId = 91)
    public void IsStandardArticlePresent() {
        boolean status = false;
        assertTrue(status);

    }

    public static void main(String[] args) {
        // Instantiate the JUnit core
        JUnitCore core = new JUnitCore();
        // Add the custom SpiraTest listener
        core.addListener(new SpiraTestListener());
        System.out.println("Test main");
        // Finally run the test fixture
        core.run(Test1.class);
    }

    public static junit.framework.Test suite() {
        return new JUnit4TestAdapter(Test1.class);
    }

}

2 Replies
Wednesday, February 12, 2014 9:55:43 PM
Avatar
re: BartVR on Wednesday, February 12, 2014 12:57:46 PM

Hi Bart

Could you please log a help desk ticket regarding this.

Regards

Adam

Thursday, July 24, 2014 6:47:51 AM
Avatar
re: inflectra.adam on Wednesday, February 12, 2014
Hi Adam,

I also have the same issue with Bart. Would you please to support for me in this case ?? 
and I created a new ticket TK-14041.

Regards,
Cuong Nguyen
Statistics
  • Started: Wednesday, February 12, 2014 12:57:46 PM
  • Last Reply: Thursday, July 24, 2014 6:47:52 AM
  • Replies: 2
  • Views: 6108