Skip to content

Commit 8437721

Browse files
mshaileshr@gmail.commshaileshr@gmail.com
authored andcommitted
testcases html report
1 parent e2f31b1 commit 8437721

File tree

3 files changed

+110
-24
lines changed

3 files changed

+110
-24
lines changed

requirements.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
docutils~=0.15.2
2+
dnspython~=1.16.0
3+
idna~=2.9
4+
pip~=20.1.1
5+
wheel~=0.33.6
6+
keyring~=19.2.0
7+
pytz~=2019.3
8+
Babel~=2.8.0
9+
pkginfo~=1.5.0.1
10+
MarkupSafe~=1.1.1
11+
Sphinx~=2.4.3
12+
packaging~=20.1
13+
Jinja2~=2.11.1
14+
imagesize~=1.2.0
15+
enum34~=1.1.10
16+
requests~=2.23.0
17+
snowballstemmer~=2.0.0
18+
Pygments~=2.4.2
19+
certifi~=2019.11.28
20+
chardet~=3.0.4
21+
six~=1.13.0
22+
toml~=0.10.0
23+
urllib3~=1.25.8
24+
alabaster~=0.7.12
25+
pyparsing~=2.4.6
26+
setuptools~=41.6.0
27+
zipp~=0.6.0

test_report_query.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Running tests...
33
----------------------------------------------------------------------
4-
test_functional_search_function_in_query (tests.test_query.TestQuery) ... OK (0.000244)s
4+
test_functional_search_function_in_query (tests.test_query.TestQuery) ... OK (0.000412)s
55

66
----------------------------------------------------------------------
77
Ran 1 test in 0:00:00
@@ -11,4 +11,4 @@
1111

1212

1313
Generating HTML reports...
14-
reports/TestResults_tests.test_query.TestQuery_2020-06-09_12-41-51.html
14+
reports/TestResults_tests.test_query.TestQuery_2020-06-09_12-59-47.html

test_report_stack.html

Lines changed: 81 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,89 @@
11

22
Running tests...
33
----------------------------------------------------------------------
4-
test_content_type (tests.test_stack.TestStack) ... OK (0.538158)s
5-
test_content_types_with_query_param (tests.test_stack.TestStack) ... OK (0.528488)s
6-
test_fail (tests.test_stack.TestStack) ... OK (0.000103)s
7-
test_fail_delivery_token (tests.test_stack.TestStack) ... OK (0.000069)s
8-
test_format (tests.test_stack.TestStack) ... OK (0.000057)s
9-
test_image_transformation (tests.test_stack.TestStack) ... OK (0.000270)s
10-
test_image_transformation_get_url_with_format (tests.test_stack.TestStack) ... OK (0.000105)s
11-
test_image_transformation_get_url_with_height_width (tests.test_stack.TestStack) ... OK (0.000078)s
12-
test_init_sync_no_params (tests.test_stack.TestStack) ... OK (0.589745)s
13-
test_init_sync_with_all_params (tests.test_stack.TestStack) ... OK (0.545879)s
14-
test_init_sync_with_content_type_uid (tests.test_stack.TestStack) ... OK (0.486923)s
15-
test_init_sync_with_publish_type (tests.test_stack.TestStack) ... OK (0.965049)s
16-
test_nothing (tests.test_stack.TestStack) ... SKIP (0.000032)s
17-
test_stack_credentials (tests.test_stack.TestStack) ... OK (0.000089)s
18-
test_stack_endpoint (tests.test_stack.TestStack) ... OK (0.000219)s
19-
test_stack_region (tests.test_stack.TestStack) ... OK (0.000113)s
20-
test_sync_pagination (tests.test_stack.TestStack) ... OK (1.610647)s
21-
test_sync_token (tests.test_stack.TestStack) ... OK (0.546425)s
4+
test_content_type (tests.test_stack.TestStack) ... ERROR (60.034263)s
5+
test_content_types_with_query_param (tests.test_stack.TestStack) ... OK (1.569453)s
6+
test_fail (tests.test_stack.TestStack) ... OK (0.000409)s
7+
test_fail_delivery_token (tests.test_stack.TestStack) ... OK (0.000082)s
8+
test_format (tests.test_stack.TestStack) ... OK (0.000168)s
9+
test_image_transformation (tests.test_stack.TestStack) ... OK (0.000246)s
10+
test_image_transformation_get_url_with_format (tests.test_stack.TestStack) ... OK (0.000071)s
11+
test_image_transformation_get_url_with_height_width (tests.test_stack.TestStack) ... OK (0.000066)s
12+
test_init_sync_no_params (tests.test_stack.TestStack) ... OK (0.502607)s
13+
test_init_sync_with_all_params (tests.test_stack.TestStack) ... OK (0.645791)s
14+
test_init_sync_with_content_type_uid (tests.test_stack.TestStack) ... OK (1.979747)s
15+
test_init_sync_with_publish_type (tests.test_stack.TestStack) ... OK (1.675720)s
16+
test_nothing (tests.test_stack.TestStack) ... SKIP (0.000054)s
17+
test_stack_credentials (tests.test_stack.TestStack) ... OK (0.000168)s
18+
test_stack_endpoint (tests.test_stack.TestStack) ... OK (0.000162)s
19+
test_stack_region (tests.test_stack.TestStack) ... OK (0.000078)s
20+
test_sync_pagination (tests.test_stack.TestStack) ... OK (0.644361)s
21+
test_sync_token (tests.test_stack.TestStack) ... OK (0.575534)s
2222

23+
======================================================================
24+
ERROR [60.034263s]: tests.test_stack.TestStack.test_content_type
2325
----------------------------------------------------------------------
24-
Ran 18 tests in 0:00:05
26+
Traceback (most recent call last):
27+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
28+
(self._dns_host, self.port), self.timeout, **extra_kw
29+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/urllib3/util/connection.py", line 61, in create_connection
30+
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
31+
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 752, in getaddrinfo
32+
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
33+
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
2534

26-
OK
27-
(Skipped=1)
35+
During handling of the above exception, another exception occurred:
36+
37+
Traceback (most recent call last):
38+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
39+
chunked=chunked,
40+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request
41+
self._validate_conn(conn)
42+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/urllib3/connectionpool.py", line 976, in _validate_conn
43+
conn.connect()
44+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/urllib3/connection.py", line 308, in connect
45+
conn = self._new_conn()
46+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/urllib3/connection.py", line 172, in _new_conn
47+
self, "Failed to establish a new connection: %s" % e
48+
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x10f3e1290>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known
49+
50+
During handling of the above exception, another exception occurred:
51+
52+
Traceback (most recent call last):
53+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
54+
timeout=timeout
55+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen
56+
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
57+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, in increment
58+
raise MaxRetryError(_pool, url, error or ResponseError(cause))
59+
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='cdn.contentstack.io', port=443): Max retries exceeded with url: /v3/content_types/application_theme?environment=development (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10f3e1290>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
60+
61+
During handling of the above exception, another exception occurred:
62+
63+
Traceback (most recent call last):
64+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/tests/test_stack.py", line 129, in test_content_type
65+
result = content_type.fetch()
66+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/contentstack/contenttype.py", line 87, in fetch
67+
result = self.http_instance.get(url)
68+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/contentstack/https_connection.py", line 63, in get
69+
timeout=self.default_timeout, headers=self.headers)
70+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/requests/api.py", line 76, in get
71+
return request('get', url, params=params, **kwargs)
72+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/requests/api.py", line 61, in request
73+
return session.request(method=method, url=url, **kwargs)
74+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
75+
resp = self.send(prep, **send_kwargs)
76+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
77+
r = adapter.send(request, **kwargs)
78+
File "/Users/shaileshmishra/Documents/contentstack/workspace/python/contentstack-python/env/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
79+
raise ConnectionError(e, request=request)
80+
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='cdn.contentstack.io', port=443): Max retries exceeded with url: /v3/content_types/application_theme?environment=development (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10f3e1290>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
81+
82+
----------------------------------------------------------------------
83+
Ran 18 tests in 0:01:07
84+
85+
FAILED
86+
(Errors=1, Skipped=1)
2887

2988
Generating HTML reports...
30-
reports/TestResults_tests.test_stack.TestStack_2020-06-09_12-41-34.html
89+
reports/TestResults_tests.test_stack.TestStack_2020-06-09_12-58-30.html

0 commit comments

Comments
 (0)