I am configuring a test case where an email is sent if the is any problem.
I searched on this forum and read a blog article dealing with that topic :
http://www.ranorex.com/blog/customizing-ranorex-reports
I downloaded the project file. When I try it, it works well.
Now, I try to configure the same thing for my project, but it doesn't work ...
I added the 'MailLogger.cs' file to my project, try to use the same code in 'program.cs' but when I ty to rebuild the solution, here is the error I get:
And then, if I delete this piece of code, I get those error for the 'program.cs' file:The type or namespace name 'HttpUtility' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) (CS0234) - C:\Users\f.brouillet\Documents\Ranorex\RanorexStudio Projects\CheckRuntimeLDLC.ConvertedToC#\MailLogger.cs:283,54
Please help me ... I am really lost!- The name 'MailLogger' does not exist in the current context (CS0103) - C:\Users\f.brouillet\Documents\Ranorex\RanorexStudio Projects\CheckRuntimeLDLC.ConvertedToC#\Program.cs:63,13
- The type or namespace name 'MailLogger' could not be found (are you missing a using directive or an assembly reference?) (CS0246) - C:\Users\f.brouillet\Documents\Ranorex\RanorexStudio Projects\CheckRuntimeLDLC.ConvertedToC#\Program.cs:64,41
- The type or namespace name 'MailLogger' could not be found (are you missing a using directive or an assembly reference?) (CS0246) - C:\Users\f.brouillet\Documents\Ranorex\RanorexStudio Projects\CheckRuntimeLDLC.ConvertedToC#\Program.cs:64,13
- Argument 3: cannot convert from 'System.DateTime' to 'string' (CS1503) - C:\Users\f.brouillet\Documents\Ranorex\RanorexStudio Projects\CheckRuntimeLDLC.ConvertedToC#\Program.cs:66,54
- The best overloaded method match for 'Ranorex.Report.LogHtml(Ranorex.ReportLevel, string, string)' has some invalid arguments (CS1502) - C:\Users\f.brouillet\Documents\Ranorex\RanorexStudio Projects\CheckRuntimeLDLC.ConvertedToC#\Program.cs:66,13
How can I add such a feature to my project? I only want to send an email if there is an error. It would be great if I could send the whole report, but why does it not work??