Forum Discussion
CBT tests run on a cloud machine that is basically spun up and discarded after execution. This means that any exports that are done are done ON that machine... and therefore not available for download.
I believe the CBT feature of TestComplete has it's own logs associated with it. See https://support.smartbear.com/testcomplete/docs/working-with/integration/cbt/viewing-results.html
Thanks for the updates .
I followed this link. We can export the MHT report manually. IS there a way we can make this process automatic ?
Thanks
Nishchal
- tristaanogre6 years agoEsteemed Contributor
As far as I know, not directly via the CBT integration.
- nisgupta6 years agoValued Contributor
I contacted the support team few days and here is the replay we get.
There is another way you can bring the mht file path. you can include a Log.File command to which will save an instance of the file you want to keep in the local test directory. Link on how to use the method is below:
https://support.smartbear.com/testcomplete/docs/reference/project-objects/test-log/log/file.html
I am not sure how Log.File will work in this case.
Thanks
Nishchal
- tristaanogre6 years agoEsteemed Contributor
Hrm.... OK, I THINK I know what they are saying...
so, in your code, you call the Log.ExportToFile method to export the MHT. They are suggesting adding the Log.File method after that to pull that MHT file into the log. That log is then copied back to your local machine as part of the CBT log. Your MHT file is then there and present, just need to save the attachment.