reportportal/agent-java-testNG

Data provider test does not show multiple runs

mchundi opened this issue · 2 comments

Hi,
I am new to report portal. I have a data provider test that takes 2 inputs. When I execute the test, reportportal shows only one.

POM dependencies

<dependency>
			<groupId>com.epam.reportportal</groupId>
			<artifactId>agent-java-testng</artifactId>
			<version>5.0.9</version>
		</dependency>
		<dependency>
			<groupId>com.epam.reportportal</groupId>
			<artifactId>logger-java-log4j</artifactId>
			<version>5.0.3</version>
		</dependency>

Test case:

@Test(groups = {"P1","sanity"},description = "sanity",
            dataProvider="PathValueProvider", dataProviderClass=DataProviderClass.class)
    public void validateValueAtPath(String jsonPathToFind, String valueToCheck){
        ...
    }

Data provider

@DataProvider(name="PathValueProvider")
    public static Object[][] getJsonPathValue(){
        return new Object[][] {
            { s1,s2},
            { t1,t2 },
        };  
    }

@mchundi I'm not getting what you mean, can you provide any screenshot?

Issue was with my test. I fixed it.
Thank you for looking into this.