Write Assert fail differences to Excel or text file Selenium C

+1 vote
I am using selenium  with C#

I have Number of asserts in my test case, is there a way i can write the assert fail to a file, text file or excel.

Lets say assert fails, I want  the actual and expected to  automatically written in the Excel.

Any help will be appreciated
Feb 27, 2020 in Software Testing by Etl
• 170 points
490 views
Hey, why don't use the logging feature of TestNG? It's very easy to generate your own reports with TestNG with Listeners and Reporters

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Software Testing

+2 votes
2 answers

How to read data in Robot framework from excel file.

You can try run "py –m pip ...READ MORE

answered May 19, 2020 in Software Testing by anonymous
4,584 views
+2 votes
0 answers

Comparing data with the data in excel sheet using Selenium Webdriver

Hello, I have written a code for registration ...READ MORE

Apr 9, 2020 in Software Testing by Kunal
• 140 points
2,561 views
+1 vote
1 answer

Select a row in AG-grid through selenium c# ..?

For every angular grid, angular generates the ...READ MORE

answered Jul 7, 2020 in Software Testing by Sirajul
• 59,070 points
1,493 views
+1 vote
1 answer

How can we connect Selenium to Existing browser in Ruby Programming language?

Check this out https://www.browserstack.com/docs/automate/sele ...READ MORE

answered Aug 11, 2020 in Software Testing by Karan
• 19,620 points
411 views
+2 votes
0 answers
+1 vote
1 answer

Selenium webdriver in java how to automate email verification ?

Hey @Manali, check this out https://blog.mailtrap.io/selenium-email-ve ...READ MORE

answered Oct 19, 2020 in Software Testing by Karan
• 19,620 points
944 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
6,019 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
6,457 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
4,083 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
5,057 views