Ask a Question

TestComplete -crossbrowserTesting - export MHT report through script

nisgupta
Valued Contributor

TestComplete -crossbrowserTesting - export MHT report through script

How we can export the result of crossbrowsertesting log to MHT format?  I have attached the code screenshot for exporting the MHT report by script when we run our local tests.

 

Now we want to export the  MHT report when we run cbt tests . This current script will not work for CBT tests.

 

Please update 

24 REPLIES 24

@tristaanogre 

 

Thanks for the updates .

We have one more challenging issues. How can I run this script ? I have attached the CBT workspace screenshot showing that if the script is put in the CBT workspace then it will fail.

 

Thanks

Nishchal

 

nisgupta
Valued Contributor

@tristaanogre 

 

Any updates on this ?

 

Thanks

Nishchal

tristaanogre
Esteemed Contributor

Well, first of all, if this is a different problem than the OP... would be better if it was it's own thread.

 

Second of all... I'm not entirely sure what you're asking.  If a script is added to a workspace, it will attempt to run.  If it fails, what are the errors?  What messages?  HOW exactly does it fail?  Just saying "If I put it here, it fails" doesn't tell me much of anything.


Robert Martin
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available

@tristaanogre 

 

We want to export the MHT report after running the CBT tests. 

our CBT tests are running against different OS and Browsers 

 

Once the CBT tests finished running then we want to export the MHT report. 

We do have MHT report script which we want to run all the tests finished. 

Now if we add the script the CBT test workspace then in CBT all the test script run in parallel and so the report script will run in parallel too. 

 

Thanks

Nishchal

tristaanogre
Esteemed Contributor

Right... so... what changed?  We gave a recommendation of attaching the MHT file to the log which is then pulled back to the main TC machine used for execution.  This would pull back MHT files from all CBT environments as they are executed.  Is this not working?


Robert Martin
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available

Nothing changed. 

we discussed about the Log.File statement to be put in Report script but again that script will be run as parallel with other script.

 

 

tristaanogre
Esteemed Contributor

Right.  That's fine.  I don't see any reason why that would be a problem. The log will pull back the files and such from the CBT environment per test run... that is, unless you're experiencing some other error that you haven't told us.  But that is the recommendation... even if they are running in parallel, this should work because each log is kept separate per machine that it's run on.


Robert Martin
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available

Here is the error information that I have .

tristaanogre
Esteemed Contributor

If you double click on the line that says "The parameter is incorrect", it will take you to the script/keyword test and specific line that generated that error.  Also, check the "Additional Information" tab for that error entry as that will also give indication of further details.  However, this doesn't appear to be a problem with the CBT execution (note that the MHT file IS actually attached to that log) but that there's something going on particularly in that machine at that point.  More information is necessary


Robert Martin
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available

The error is at the line 

Log.File("*\\CBT_WOAHOLD_Admin\\WOAHOLD Admin\\Log\\Results\\CBT WOAHOLD-001 Admin Page Holds Search and Edit.mht")

cancel
Showing results for 
Search instead for 
Did you mean: