qaf icon indicating copy to clipboard operation
qaf copied to clipboard

While executing data driven tcs in testng-xml generated it shows one set of tcs in ignored <testng-results ignored="1" total="3" passed="2" failed="0" skipped="0">

Open bincy91 opened this issue 3 years ago • 1 comments

QAF Version : 3.0.0

Note: only the latest version is supported While executing data driven tcs it executes the test case for 2 set of data and shows proper result in dasboard.htm But while generating result in "testng.xml" it shows . Its counting one set as ignored even though it has executed for the given set.

Steps To Reproduce

1.Execute data driven tcs for `api`
2.Check testng-xml generated 

Expected behavior : It executes the data driven BDD for 2 set o data properly while testng-xml report is generated it should not count ignored=1

It should be :

Actual behavior :

It counts one set of tcs in ignored in testng-xml.

Is the issue reproducible on runner?

  • [x] QAS
  • [ ] Maven
  • [ ] Gradle
  • [x] Ant
  • [ ] Eclipse

Test case sample

[23-04 17:37] Bincy Babu

@key:home.get Scenario: Field level Validations for ImageLinkList Container

Given user sets the url 'home.get' Then user validates the api status code '200' and status 'OK' Then user validates response has jsonpath '$..version'

api-request.xml

<root> 
    <home>
            <get>
                <endPoint>${​​​​​​​intermiles.endpoint.home}​​​​​​​</endPoint>
                <baseUrl>${​​​​​​​intermiles.api.baseurl}​​​​​​​</baseUrl>
                <method>GET</method>
            </get>
            <get>
                <endPoint>${​​​​​​​intermiles.endpoint.home1}​​​​​​​</endPoint>
                <baseUrl>${​​​​​​​intermiles.api.baseurl}​​​​​​​</baseUrl>
                <method>GET</method>
            </get>        
    </home>
<root>

uat.properties:

intermiles.api.baseurl=https://uatresources.******.com
intermiles.endpoint.home=/iwov-resources/caas/json/Mobile/home.json
intermiles.endpoint.home1=/iwov-resources/caas/json/Mobile/400/home.json

dasboardhtml JunitReport testng-xml

bincy91 avatar Apr 30 '21 10:04 bincy91

You didn't provided step implantation and execution configuration used. Will you please share the test case (as small as possible) which reproduces the issue?

Below worked fine for me:

@key:home.get 
Scenario: Field level Validations for ImageLinkList Container 
	Given COMMENT: '${endPoint}'

cjayswal avatar Jun 04 '21 18:06 cjayswal