Skip to content

Commit

Permalink
deploy: 72e27bf
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastientourbier committed Nov 16, 2023
1 parent 1b94bab commit f5b61d0
Show file tree
Hide file tree
Showing 5 changed files with 894 additions and 1 deletion.
264 changes: 264 additions & 0 deletions report-16-11-2023-07-00/junit-report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="2" skipped="0" tests="6" time="147.877" timestamp="2023-11-16T07:00:08.737475" hostname="5c95c0f6ab7e"><testcase classname="test_public_mip.TestPublicMIP" name="test_login_and_accept_terms[https://hbpmip.link/]" time="27.668" /><testcase classname="test_public_mip.TestPublicMIP" name="test_data[https://hbpmip.link/]" time="24.055"><failure message="selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {&quot;method&quot;:&quot;xpath&quot;,&quot;selector&quot;:&quot;//*[name()='circle'][. = 'Left opercular part of the inferior frontal gyrus&#10;']&quot;}&#10; (Session info: headless chrome=119.0.6045.105); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception&#10;Stacktrace:&#10;#0 0x55addaaff5e3 &lt;unknown&gt;&#10;#1 0x55adda7c20b7 &lt;unknown&gt;&#10;#2 0x55adda80ff53 &lt;unknown&gt;&#10;#3 0x55adda810051 &lt;unknown&gt;&#10;#4 0x55adda8559c4 &lt;unknown&gt;&#10;#5 0x55adda836f1d &lt;unknown&gt;&#10;#6 0x55adda852b3d &lt;unknown&gt;&#10;#7 0x55adda836cc3 &lt;unknown&gt;&#10;#8 0x55adda8020e4 &lt;unknown&gt;&#10;#9 0x55adda8030ae &lt;unknown&gt;&#10;#10 0x55addaac5ce1 &lt;unknown&gt;&#10;#11 0x55addaac9b7e &lt;unknown&gt;&#10;#12 0x55addaab34b5 &lt;unknown&gt;&#10;#13 0x55addaaca7d6 &lt;unknown&gt;&#10;#14 0x55addaa96dbf &lt;unknown&gt;&#10;#15 0x55addaaed748 &lt;unknown&gt;&#10;#16 0x55addaaed917 &lt;unknown&gt;&#10;#17 0x55addaafe773 &lt;unknown&gt;&#10;#18 0x7fc716baa044 &lt;unknown&gt;">self = &lt;test_public_mip.TestPublicMIP object at 0x7f248884ebe0&gt;

def test_data(self):
"""Integration tests (data) of the public MIP."""
&gt; super().test_data()

test_public_mip.py:24:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
basetest.py:106: in test_data
left_opercular_part_of_the_inferior_f_ = selenium_driver.find_element(
/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py:739: in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py:345: in execute
self.error_handler.check_response(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = &lt;selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7f24888d4cd0&gt;
response = {'status': 404, 'value': '{"value":{"error":"no such element","message":"no such element: Unable to locate element: {\...\\n#16 0x55addaaed917 \\u003Cunknown&gt;\\n#17 0x55addaafe773 \\u003Cunknown&gt;\\n#18 0x7fc716baa044 \\u003Cunknown&gt;\\n"}}'}

def check_response(self, response: Dict[str, Any]) -&gt; None:
"""Checks that a JSON response from the WebDriver does not have an
error.

:Args:
- response - The JSON response from the WebDriver server as a dictionary
object.

:Raises: If the response contains an error message.
"""
status = response.get("status", None)
if not status or status == ErrorCode.SUCCESS:
return
value = None
message = response.get("message", "")
screen: str = response.get("screen", "")
stacktrace = None
if isinstance(status, int):
value_json = response.get("value", None)
if value_json and isinstance(value_json, str):
import json

try:
value = json.loads(value_json)
if len(value) == 1:
value = value["value"]
status = value.get("error", None)
if not status:
status = value.get("status", ErrorCode.UNKNOWN_ERROR)
message = value.get("value") or value.get("message")
if not isinstance(message, str):
value = message
message = message.get("message")
else:
message = value.get("message", None)
except ValueError:
pass

exception_class: Type[WebDriverException]
e = ErrorCode()
error_codes = [item for item in dir(e) if not item.startswith("__")]
for error_code in error_codes:
error_info = getattr(ErrorCode, error_code)
if isinstance(error_info, list) and status in error_info:
exception_class = getattr(ExceptionMapping, error_code, WebDriverException)
break
else:
exception_class = WebDriverException

if not value:
value = response["value"]
if isinstance(value, str):
raise exception_class(value)
if message == "" and "message" in value:
message = value["message"]

screen = None # type: ignore[assignment]
if "screen" in value:
screen = value["screen"]

stacktrace = None
st_value = value.get("stackTrace") or value.get("stacktrace")
if st_value:
if isinstance(st_value, str):
stacktrace = st_value.split("\n")
else:
stacktrace = []
try:
for frame in st_value:
line = frame.get("lineNumber", "")
file = frame.get("fileName", "&lt;anonymous&gt;")
if line:
file = f"{file}:{line}"
meth = frame.get("methodName", "&lt;anonymous&gt;")
if "className" in frame:
meth = f"{frame['className']}.{meth}"
msg = " at %s (%s)"
msg = msg % (meth, file)
stacktrace.append(msg)
except TypeError:
pass
if exception_class == UnexpectedAlertPresentException:
alert_text = None
if "data" in value:
alert_text = value["data"].get("text")
elif "alert" in value:
alert_text = value["alert"].get("text")
raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here
&gt; raise exception_class(message, screen, stacktrace)
E selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[name()='circle'][. = 'Left opercular part of the inferior frontal gyrus
E ']"}
E (Session info: headless chrome=119.0.6045.105); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
E Stacktrace:
E #0 0x55addaaff5e3 &lt;unknown&gt;
E #1 0x55adda7c20b7 &lt;unknown&gt;
E #2 0x55adda80ff53 &lt;unknown&gt;
E #3 0x55adda810051 &lt;unknown&gt;
E #4 0x55adda8559c4 &lt;unknown&gt;
E #5 0x55adda836f1d &lt;unknown&gt;
E #6 0x55adda852b3d &lt;unknown&gt;
E #7 0x55adda836cc3 &lt;unknown&gt;
E #8 0x55adda8020e4 &lt;unknown&gt;
E #9 0x55adda8030ae &lt;unknown&gt;
E #10 0x55addaac5ce1 &lt;unknown&gt;
E #11 0x55addaac9b7e &lt;unknown&gt;
E #12 0x55addaab34b5 &lt;unknown&gt;
E #13 0x55addaaca7d6 &lt;unknown&gt;
E #14 0x55addaa96dbf &lt;unknown&gt;
E #15 0x55addaaed748 &lt;unknown&gt;
E #16 0x55addaaed917 &lt;unknown&gt;
E #17 0x55addaafe773 &lt;unknown&gt;
E #18 0x7fc716baa044 &lt;unknown&gt;

/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py:229: NoSuchElementException</failure></testcase><testcase classname="test_qa_federation.TestMIPQAFederation" name="test_login_and_accept_terms[https://qa.hbpmip.link/]" time="26.822" /><testcase classname="test_qa_federation.TestMIPQAFederation" name="test_data[https://qa.hbpmip.link/]" time="23.658"><failure message="selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {&quot;method&quot;:&quot;css selector&quot;,&quot;selector&quot;:&quot;#default-synth_mh_wk3&quot;}&#10; (Session info: headless chrome=119.0.6045.105); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception&#10;Stacktrace:&#10;#0 0x55dcc7a785e3 &lt;unknown&gt;&#10;#1 0x55dcc773b0b7 &lt;unknown&gt;&#10;#2 0x55dcc7788f53 &lt;unknown&gt;&#10;#3 0x55dcc7789051 &lt;unknown&gt;&#10;#4 0x55dcc77ce9c4 &lt;unknown&gt;&#10;#5 0x55dcc77aff1d &lt;unknown&gt;&#10;#6 0x55dcc77cbb3d &lt;unknown&gt;&#10;#7 0x55dcc77afcc3 &lt;unknown&gt;&#10;#8 0x55dcc777b0e4 &lt;unknown&gt;&#10;#9 0x55dcc777c0ae &lt;unknown&gt;&#10;#10 0x55dcc7a3ece1 &lt;unknown&gt;&#10;#11 0x55dcc7a42b7e &lt;unknown&gt;&#10;#12 0x55dcc7a2c4b5 &lt;unknown&gt;&#10;#13 0x55dcc7a437d6 &lt;unknown&gt;&#10;#14 0x55dcc7a0fdbf &lt;unknown&gt;&#10;#15 0x55dcc7a66748 &lt;unknown&gt;&#10;#16 0x55dcc7a66917 &lt;unknown&gt;&#10;#17 0x55dcc7a77773 &lt;unknown&gt;&#10;#18 0x7f27ca95b044 &lt;unknown&gt;">self = &lt;test_qa_federation.TestMIPQAFederation object at 0x7f24888a20d0&gt;

def test_data(self):
"""Integration tests (data) of the MIP QA Federation."""
&gt; super().test_data()

test_qa_federation.py:24:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
basetest.py:88: in test_data
default_synth_mh_wk3 = selenium_driver.find_element(
/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py:739: in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py:345: in execute
self.error_handler.check_response(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = &lt;selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7f24895f6070&gt;
response = {'status': 404, 'value': '{"value":{"error":"no such element","message":"no such element: Unable to locate element: {\...\\n#16 0x55dcc7a66917 \\u003Cunknown&gt;\\n#17 0x55dcc7a77773 \\u003Cunknown&gt;\\n#18 0x7f27ca95b044 \\u003Cunknown&gt;\\n"}}'}

def check_response(self, response: Dict[str, Any]) -&gt; None:
"""Checks that a JSON response from the WebDriver does not have an
error.

:Args:
- response - The JSON response from the WebDriver server as a dictionary
object.

:Raises: If the response contains an error message.
"""
status = response.get("status", None)
if not status or status == ErrorCode.SUCCESS:
return
value = None
message = response.get("message", "")
screen: str = response.get("screen", "")
stacktrace = None
if isinstance(status, int):
value_json = response.get("value", None)
if value_json and isinstance(value_json, str):
import json

try:
value = json.loads(value_json)
if len(value) == 1:
value = value["value"]
status = value.get("error", None)
if not status:
status = value.get("status", ErrorCode.UNKNOWN_ERROR)
message = value.get("value") or value.get("message")
if not isinstance(message, str):
value = message
message = message.get("message")
else:
message = value.get("message", None)
except ValueError:
pass

exception_class: Type[WebDriverException]
e = ErrorCode()
error_codes = [item for item in dir(e) if not item.startswith("__")]
for error_code in error_codes:
error_info = getattr(ErrorCode, error_code)
if isinstance(error_info, list) and status in error_info:
exception_class = getattr(ExceptionMapping, error_code, WebDriverException)
break
else:
exception_class = WebDriverException

if not value:
value = response["value"]
if isinstance(value, str):
raise exception_class(value)
if message == "" and "message" in value:
message = value["message"]

screen = None # type: ignore[assignment]
if "screen" in value:
screen = value["screen"]

stacktrace = None
st_value = value.get("stackTrace") or value.get("stacktrace")
if st_value:
if isinstance(st_value, str):
stacktrace = st_value.split("\n")
else:
stacktrace = []
try:
for frame in st_value:
line = frame.get("lineNumber", "")
file = frame.get("fileName", "&lt;anonymous&gt;")
if line:
file = f"{file}:{line}"
meth = frame.get("methodName", "&lt;anonymous&gt;")
if "className" in frame:
meth = f"{frame['className']}.{meth}"
msg = " at %s (%s)"
msg = msg % (meth, file)
stacktrace.append(msg)
except TypeError:
pass
if exception_class == UnexpectedAlertPresentException:
alert_text = None
if "data" in value:
alert_text = value["data"].get("text")
elif "alert" in value:
alert_text = value["alert"].get("text")
raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here
&gt; raise exception_class(message, screen, stacktrace)
E selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"#default-synth_mh_wk3"}
E (Session info: headless chrome=119.0.6045.105); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
E Stacktrace:
E #0 0x55dcc7a785e3 &lt;unknown&gt;
E #1 0x55dcc773b0b7 &lt;unknown&gt;
E #2 0x55dcc7788f53 &lt;unknown&gt;
E #3 0x55dcc7789051 &lt;unknown&gt;
E #4 0x55dcc77ce9c4 &lt;unknown&gt;
E #5 0x55dcc77aff1d &lt;unknown&gt;
E #6 0x55dcc77cbb3d &lt;unknown&gt;
E #7 0x55dcc77afcc3 &lt;unknown&gt;
E #8 0x55dcc777b0e4 &lt;unknown&gt;
E #9 0x55dcc777c0ae &lt;unknown&gt;
E #10 0x55dcc7a3ece1 &lt;unknown&gt;
E #11 0x55dcc7a42b7e &lt;unknown&gt;
E #12 0x55dcc7a2c4b5 &lt;unknown&gt;
E #13 0x55dcc7a437d6 &lt;unknown&gt;
E #14 0x55dcc7a0fdbf &lt;unknown&gt;
E #15 0x55dcc7a66748 &lt;unknown&gt;
E #16 0x55dcc7a66917 &lt;unknown&gt;
E #17 0x55dcc7a77773 &lt;unknown&gt;
E #18 0x7f27ca95b044 &lt;unknown&gt;

/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py:229: NoSuchElementException</failure></testcase><testcase classname="test_stroke_federation.TestStrokeMIP" name="test_login_and_accept_terms[https://stroke.hbpmip.link/]" time="26.869" /><testcase classname="test_stroke_federation.TestStrokeMIP" name="test_data[https://stroke.hbpmip.link/]" time="18.227" /></testsuite></testsuites>
Loading

0 comments on commit f5b61d0

Please sign in to comment.