Test results are not passing from selenium to spira

Wednesday, June 4, 2014
Avatar
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:
https://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
Avatar
re: tamilselvan.kanagasa Wednesday, June 4, 2014

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

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, June 4, 2014
  • Last Reply: Friday, June 6, 2014
  • Replies: 1
  • Views: 2430