You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 17, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 17, 2020. It is now read-only.
[HelpNeeded]Unable to Append Child Tests in for loog in version 2.0 #1105
1.Running API Tests using Excel Data for 4 rows
2.Created Parent Test before for loop
3.Created Child Test under for loop to print Test Case Name in report
4.After appending child Test to parent displaying 4 records in report and each record having 1 test case name and 2nd row having 2 records,3rd row having 3 records,4th row having 4 records.
Please help how to resolve this problem and my code is .
Expected Behavior
Current Behavior
Sample
pubcliClass{

@TestpublicvoidtestCustomerCreation(){
parentTest = extent.startTest("Create Customer API Test");
for(inti=1,i<=4;i++){
StringtestCaseName = ReadWriteExcel.getCellValue(xl, sheet, i,1);
test = extent.startTest(testCaseName);
test.log(LogStatus.PASS, "Customer Creation Test is started");
//Some If Condtions hereif(response_Mes.equals("SUCCESS")){
test.log(LogStatus.PASS,response_Mes );
}else{
test.log(LogStatus.FAIL,response_Mes );
}
parentTest.appendChild(test);
extent.endTest(parentTest);
test.getRunStatus();
}
}
}
Activity
foursyth commentedon Aug 16, 2018
Version 2 is no longer supported. Please upgrade to version 3 out the upcoming version 4 (next month).