c# - How to Count my pass fail test case and print at the end of execution -


i have multiple test cases , want write common method can count fail or pass test case , print total pass , fail test case @ end of execution.

instead of using class count total pass , fail cases, can implement method this:

int pass=0; int fail=0; for(int i=0;i<testcasescount;i++) {   //read input using console.readline();   //check whether test case pass or fail , appropriately increment counter } //executed after loop i.e. test cases  console.writeline(pass); console.writeline(fail); 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -