Thread

Skip Navigation LinksForums > SpiraTest Forums > SpiraTest Issues & Questi... > Test results are not pass...

Test results are not passing from selenium to spira RSS Feed

Wednesday, June 4, 2014
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
Adam SAdam S
re: tamilselvan k on Wednesday, June 4, 2014
Thursday, June 5, 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

Tagged
Statistics
  • Started: 6/4/2014
  • Last Reply: 6/5/2014
  • Replies: 1
  • Views: 488
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.