Xray requirement not updating in testng-results.xml

Deepak Ratan March 25, 2019

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

0 votes
Syed Mohammad Soban
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2019

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

0 votes
Deepak Ratan March 25, 2019

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...!!!! 

Meghana Mallineni January 16, 2023

Hi you must have solved the issue, could you help me with the TestNG importing. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events