Tests showing as twice #731
Comments
Hello. IMO it is expected behavior. Report shows as many test cases as many executions there were. It doesn't matter whether the test was parametrized or not. So, if test passed on one device and failed on another one, there will be two test cases with according statuses. For test name you can't use placeholders (as for test steps https://github.com/allure-framework/allure-core/wiki/Steps#placeholders ). But test name should be extended with parameters values automatically. |
Thank you for your reply , I will tell the whole scenario . I am using Appium with help of selenium grid and I am giving device parameters in testng.xml the screenshot I attached is only one test case running in both the devices. But it's showing same test cases many number of times. |
@fropcorn-ravi could you please provide testng.xml once more? Usually duplicated test cases mean duplicated executions (e.g. several Allure adapters in class path, not cleaned project from previous execution, etc.). You can have a look how many tests Allure knows about right after execution (but before report generation). Please look through target/allure-results/*-testsuite.xml files. |
i have checked the xml generated by allure report. test cases were showing twice for each device, i have attached the pom xml in the attachement , could you please check and tell where i have done a mistake. |
Hello. I have the same situation as @fropcorn-ravi. In my pom.xml i defined suiteXmlFile in which i defined java class with method marked with @factory annotation. Every time i invoke |
Hey guys, look at these lines in your pom.xml:
Since you are using TestNG version 1.4.* you don't need these properties in the pom anymore. Looks like listener adds twice in that case and that's why tests are showing twice in report. So, report shows correctly after deleting that piece of code from pom.xml. |
Hello, thanks a lot for your answer. You are absolutely right with that additional AllureTestListener in pom.xml cause the problem. |
Thanks a lot , you were right.... Ravi Kiran
|
Hi @fropcorn-ravi : How were you able to insert the details of the devices in the report i.e: Nexus, version etc. Also, for me the second device execution is shown as a retry, is this working fine for you |
Hello i have an issue for getting the reports where i am using giving parameters in testng.xml to run the same test class twice for different devices. everything is going fine but in the report all the test cases are showing twice for each device.
my testng.xml file is as follows
The text was updated successfully, but these errors were encountered: