cancel
Showing results for 
Search instead for 
Did you mean: 

Testcomplete + sending the log by email if there is failure

Community Hero

Re: Testcomplete + sending the log by email if there is failure

Interesting process.  Generally looks good...

 

...what are the issues?  You haven't indicated.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Super Contributor

Re: Testcomplete + sending the log by email if there is failure

Did you see the MHT report ? The last 2 page in pdf file. They are mixed up.

 

We have the projectItems

NBAPBUD

NBAJOBS

 

First the projectItem - NBAPBUD is run and it has errors. So on logerror event handler is called. in this onlogerror event handler we stop the NBAPBUD projectitem from running further. Then we are trying to export the MHT report to the hard disk . When we open the MHT report - it is missing the error information .

 

Now when the the next projectItem is run -NBAJOBS is run - it has errors and so on logerror event handler is called. So we stop the testItem from running further and exprt the MHT report to the hard disk. When we open the MHT report - it containhe report about NBAPBUD - which is previous projectItem and the NBAJOBS 

 

My expected result is

When the first projectITem is Run - NBAPBUD - we should see the MHT report for NBAPBUD.

When the second projectItem is Run - NBAJOBS - we should see the MHT report for NBAJOBS.

 

Thanks

Nishchal

 

Community Hero

Re: Testcomplete + sending the log by email if there is failure

OK, before I go any further, 2 things:

 

1) It's probably a good idea that, for a different issue, to start a new thread.  That will help other folks having the same issue to find your thread and either comment or read your solution.

2) I don't do this for a living so, expecting the document to explain the issue means you're expecting me to sit down and do a full analysis of what you're doing to determine "Hey, there's a problem here!"  Best rule of thumb: Declare the problem in the OP and provide screenshots and documentation for evidence.

 

That said... you're code has 

 

Log.SaveResultsAs(outFile, lsMHT, 2)

While the parameters after outfile are optional, I think you might want to actually expand to all 4 parameters so that the "2" at the end is properly indicating the scope.  Change to

 

Log.SaveResultsAs(outFile, lsMHT, false, 2)

and see if that corrects.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Super Contributor

Re: Testcomplete + sending the log by email if there is failure

Sorry for causing inconvenience

 

The issue still remain the same.

 

Thanks

 

 

 

Highlighted
Community Hero

Re: Testcomplete + sending the log by email if there is failure

The log scope SHOULD handle it.  If it's not, then it sounds like something you should message the SmartBear support staff.  I seem to remember that someone else reported a similar issue and there may be a patch that you can apply.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Super Contributor

Re: Testcomplete + sending the log by email if there is failure

According to the support team 

I've tried reproducing the behavior on my side, and it looks like the SaveResultsAs function cannot export the current test item log. I contacted our developers to find out what they think about the situation - whether it's a bug or a known limitation.

 

Thanks

NG

Community Manager

Re: Testcomplete + sending the log by email if there is failure

Thanks for the update, @nisgupta.

Please keep us informed.

---------
Tanya Gorbunova
SmartBear Community Manager

Join the September Hub-bub to show off, learn and win
New Here?
Join us and watch the welcome video:
Watch the New Interview
7Mistakes
Join the September Hub-bub to show off, learn and win