diff options
author | Benoit Foucher <benoit@zeroc.com> | 2018-04-23 09:54:37 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2018-04-23 09:54:37 +0200 |
commit | 97b3310b8069cc661e7ada224701b7176309054f (patch) | |
tree | f88baf80899334b05242f35330f486663afda45c | |
parent | Fixed IceGrid/update test to print the reason of server start failure (ICE-8849) (diff) | |
download | ice-97b3310b8069cc661e7ada224701b7176309054f.tar.bz2 ice-97b3310b8069cc661e7ada224701b7176309054f.tar.xz ice-97b3310b8069cc661e7ada224701b7176309054f.zip |
Added diagnostic information in case the JS controller can't connect to the process controller registry (ICE-8850)
-rw-r--r-- | scripts/Util.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index 4a155eead04..1957341a140 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -2603,6 +2603,27 @@ class BrowserProcessController(RemoteProcessController): return "Browser/ProcessController" + def getController(self, current): + try: + return RemoteProcessController.getController(self, current) + except RuntimeError as ex: + if self.driver: + # Print out the client & server console element values + for element in ["clientConsole", "serverConsole"]: + try: + console = self.driver.find_element_by_id(element).get_attribute('value') + if len(console) > 0: + print("controller {0} value:\n{1}".format(element, console)) + except Exception as exc: + print("couldn't get controller {0} value:\n{1}".format(element, exc)) + pass + # Print out the browser log + try: + print("browser log:\n{0}".format(self.driver.get_log("browser"))) + except: + pass # Not all browsers support retrieving the browser console log + raise ex + def destroy(self, driver): if self.httpServer: self.httpServer.terminate() |