How to update TC result in excel | Selenium Forum
A
Ashish Posted on 26/02/2020

Hi,

Is there any video which shows how to update your TestCase result also in the excel..

 

I have an Excel where all TC names are mentioned and i want to update Pass or Fail based on TC execution.. How this can be handled ?

 

I referred framework but couldnt find any such scenario covered.. Please provide the path forward. 


A
Ashish Thakur Replied on 28/02/2020

You need to write your own custom code for that. It is ease, you can use setCellData() method to put data in the XLS file.


A
Ashish Replied on 02/03/2020

I tried and i was able to update it.. But how it will work in real time..

 

I mean if TC failed then it should update as fail and if passed then Pass.. Do we need to use "Listener" concept in such case ?


A
Ashish Thakur Replied on 02/03/2020

you can create a reportFailure Method to mark the test case as failed.


Related Posts