Search found 26 matches

by jchou
Wed Dec 19, 2012 1:21 am
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

Thanks, Markus. That's exactly what I did, and it seems to work fine.
by jchou
Tue Dec 18, 2012 3:46 am
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

Hi Markus, Got a new question about emailing test results. We have a need to use different receiver email address (who would receive test result email) in different test environments. What would be a flexible way to do that when I run .exe from command line? Should I pass the email address in as an ...
by jchou
Tue Nov 20, 2012 10:15 pm
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

Will do. Thanks, Markus.

Joe
by jchou
Mon Nov 19, 2012 8:10 pm
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

If using report level as indication of iteration status would be OK, then I am looking for what to use as the report level, the first parameter in LogText() method when I call it. Does ReportLevel have something I can use? On the other hand, if this won't work, it would be OK too. Since I just heard...
by jchou
Mon Nov 19, 2012 7:57 pm
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

Hi Markus, Thanks for you reply. "Current report level" I meant the report level of the current iteration of a test case (I need to repeat a test case for multiple app servers). The reason I asked for that is in your sample code (SendReportAndStatusPerMail), in the email report, the level of each it...
by jchou
Fri Nov 16, 2012 9:28 pm
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

Hi Markus, I am using Ranorex3.3.3. How do I get the current report level to pass into logText method call? For example, instead of passing in report level Error: LogText(ReportLevel.Error, ServerURL,TestCase.Current.Status.ToString(), ...); Is there a way to pass in the current report level? I am t...
by jchou
Wed Nov 14, 2012 1:18 am
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

Hi Markus, The code is already in the Teardown session. But TestCase.Current.Status seems not being updated as soon as one iteration fails, and stays as "Failed" through the rest of the iterations. As in your sample code, checkState() method is called in the email module in the teardown session. Tes...
by jchou
Mon Nov 12, 2012 10:10 pm
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

Hi Markus (sorry, I'd been calling you "Marcus"), I have one more question. When I was trying to log one line test result of each test case iteration in my email report (using Testcase.Current.Status.toString()), I ran into a problem that if one of the iterations failed, the rest iterations would al...
by jchou
Thu Nov 08, 2012 11:00 pm
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

I see. Thanks, Marcus.
by jchou
Wed Nov 07, 2012 4:14 am
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

Hi Marcus, In your sample code, SendReportAndStatus, in End() of MailLogger.cs, there is a piece of code packing alternative html plain view into the mail: // add html email part AlternateView htmlPlainView = AlternateView.CreateAlternateViewFromString( htmlText, null, MediaTypeNames.Text.Html); for...
by jchou
Wed Nov 07, 2012 1:26 am
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

Thought it might be helpful to some people who don't know yet, I post Roland's answer here: in general a Ranorex Report is an XML-based file. Next to this xml-file, a stylesheet (*.xsl) is needed for displaying and, in some situations, also a Ranorex Logo and Screenshots are needed if they are refer...
by jchou
Wed Nov 07, 2012 1:18 am
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

I've got the answers of my question (from Roland of Rx). Thanks.
by jchou
Tue Nov 06, 2012 3:33 am
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

Thanks a lot, Markus. That simple checking of Compressed Copy does the trick (I was about to copy my original project over and then add all the test cases to it. So glad to know that one click in the Compressed Copy check box saved all that replication work!) Now here is a new problem (always one th...
by jchou
Mon Oct 22, 2012 7:54 am
Forum: General Questions
Topic: Sending an email of Test Results
Replies: 41
Views: 21739

Re: Sending an email of Test Results

Thanks, Marcus, that (continue with iterations) worked. One more question: I tried to implement your emailing code to a new project by porting MailLogger.cs and part of Program.cs (the code that calls MailLogger methods) to the new project. The email part seemed to work fine, but the zipped report w...
by jchou
Wed Oct 17, 2012 10:24 pm
Forum: General Questions
Topic: How to copy a module to a different project
Replies: 3
Views: 2743

Re: How to copy a module to a different project

Have you tried what you suggested? How about the repositories of the module? Copy the whole repository file of the other project?