Test results are not passing from selenium to spira

Wednesday, June 4, 2014 12:55:28 PM
Using java driver the test results are not getting passed to Spira. Script is running properly but the results are not passing to spira

package com.inflectra.spiratest.addons.testnglistener.samples;
import com.inflectra.spiratest.addons.testnglistener.*;
import org.testng.annotations.*;
import static org.testng.AssertJUnit.*; 
import com.thoughtworks.selenium.*;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;


@SpiraTestConfiguration(
url="https://spiraurl",
login="user",
password="password",
projectId=1,
releaseId=1,
testSetId=28,
runner=RunnerName.Selenium
@Test(groups={"seleniumtest"})

public class finaltest
{
public static WebDriver driver;
@Test(groups={"seleniumtest"})
@SpiraTestCase(testCaseId=121)
public static void main() throws InterruptedException
driver = new FirefoxDriver();
driver.get("http://www.google.com");
Thread.sleep(10000);
if (driver.getTitle().equals("google"))
{
System.out.println("hai");
}else{
System.out.println("no");
}
driver.quit();
}
}

as per below mentioned document setup done for testNG:
http://www.inflectra.com/Documents/SpiraTest-Team%20Automated%20Testing%20Integration%20Guide.pdf
under this please refer the section 5.2

could anyone please help on this?
1 Replies
Friday, June 6, 2014 3:07:28 AM
Avatar
re: tamilselvan.kanagasa on Wednesday, June 4, 2014 12:55:28 PM

Hi Tamilselvan

You need to make sure that you have included the SpiraTest listener Java class as a listener in the TestNG configuration.

If you need help on doing that, send us a help desk ticket.

Regards

Adam

Statistics
  • Started: Wednesday, June 4, 2014 12:55:28 PM
  • Last Reply: Friday, June 6, 2014 3:07:28 AM
  • Replies: 1
  • Views: 634