Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Xray requirement not updating in testng-results.xml Edited

When I am running the POM.xml -> In testng-results.xml -> Requirement details not updating => @Xray(requirement = "MF-21", test = "MF-21", labels = "MOTO")

 

This is my code

=============

package com.DD.testcases;

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.testng.annotations.Test;
import com.DD.annotations.Xray;
import com.DD.base.TestBase;

public class Phaseone extends TestBase {

@techoneway
@Xray(requirement = "MF-21", test = "MF-21", labels = "MOTO")
public void placeorder(){
driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS) ;
driver.findElement(By.id(OR.getProperty("radiobutton"))).click();
driver.findElement(By.id(OR.getProperty("samplenumber"))).sendKeys("123");
driver.findElement(By.xpath(OR.getProperty("confirmthenumber"))).click();
driver.findElement(By.id(OR.getProperty("proceedtheorder"))).click();
}
}

 

testng-results.xml

===============

<?xml version="1.0" encoding="UTF-8"?>
<testng-results skipped="0" failed="1" ignored="0" total="1" passed="0">
<reporter-output>
</reporter-output>
<suite name="Testing Tool" duration-ms="626" started-at="2019-03-25T12:33:30Z" finished-at="2019-03-25T12:33:30Z">
<groups>
</groups>
<test name="placeorder" duration-ms="626" started-at="2019-03-25T12:33:30Z" finished-at="2019-03-25T12:33:30Z">
<class name="com.BrandCrock.testcases.Phaseone">
<test-method status="PASS" signature="setUp()[pri:0, instance:com.BrandCrock.testcases.Phaseone@5f9d02cb]" name="setUp" is-config="true" duration-ms="10881" started-at="2019-03-25T12:33:19Z" finished-at="2019-03-25T12:33:30Z">
<reporter-output>
</reporter-output>
</test-method> <!-- setUp -->

2 answers

I have already verified this link 

https://confluence.xpand-it.com/display/public/XRAY/Testing+using+TestNG+in+Java

but it's not working for me...!!!! 

I am also facng the same issue. Is there any solution available . Please help

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...

241 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you