Remote Error Catching
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remote Error Catching
Hi *,
yesterday I asked how to signal the fail of a remote test to a controlling instance?
I solved it by setting a flag-variable on networksuite level by onerror_log event handler in the remote test.
On the controlling instance I look up whether it was set and if, I do what has to be done.
Seems not so elegant to me, if anyone has an idea how to perform this with built-in features of tc?
Regards
Ulrich
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Community,
Any suggestions?
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ulrich,
> yesterday I asked [...]
Hm-m... Can you post a link to the question as I don't see it in this board...
> on networksuite level
NetworkSuite variables are the means to data exchange between tasks running on different machines (including controlling one) for the Network Suite. So everything seems to be fine here.
What you don't like in your approach? What built-in features you are expecting to use/exist?
/Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex,
my first post was a little bit lengthy, so I shortend it. So in principle it is the original post here. I will make this clearer in the o.p.
Why I don't like my approach:
I thought there would be some "automagic" from TC that makes it possible to ask for the return status of a remote job. Something one knows from parallel processing, kind of "spawn-wait" mechanism.
The benefit from s.th. like this might be one does not have to setup all the networksuite variable stuff for sending return or status info between remote test and the controller. Especially if you have plenty of remotes running parallel it is a little bit tricky to sync it all - what will now come up as the next task for me :-/.
Regards
Ulrich
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ulrich,
Hope, I got your problem right...
Well, you may get the state of every job via its properties - https://support.smartbear.com/testcomplete/docs/reference/project-objects/items/network-suite/job/st...
As for the status (I guess that in the given case you understand it like passed/failed)...
On the one hand, it might be handy if job.Run() returns something like this.
But on the other hand:
-- While TestComplete well can be used for integration testing, its primary area is end-to-end testing (https://automationpanda.com/2017/10/14/bdd-101-unit-integration-and-end-to-end-tests/);
-- In the end-to-end testing we are checking not that some operation works, but that some task can be done. It is possible that some problem occurs while doing the task and this problem definitely must be reported to the test log. But if the task can be done, then it should be reported as 'passed with problems'. And then it is a job for the relevant people to triage the severity of the reported problem.
With the above in mind, I am not sure that simple Pass/Fail status is really meaningful result for the end-to-end tests.
/Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for sharing your suggestion, Alex!
@ucuber, did Alex's reply help you resolve your question?
Tanya Yatskovskaya
SmartBear Community and Education Manager
