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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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 am also facng the same issue. Is there any solution available . Please help

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

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