Spiratest and JUnit Automated Tests

Wednesday, February 12, 2014
Avatar
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
Avatar
re: BartVR Wednesday, February 12, 2014

Hi Bart

Could you please log a help desk ticket regarding this.

Regards

Adam

Thursday, July 24, 2014
Avatar
re: inflectra.david 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

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, February 12, 2014
  • Last Reply: Thursday, July 24, 2014
  • Replies: 2
  • Views: 9701