api_lifeeazy = <playwright._impl._fetch.APIRequestContext object at 0x000001D9A9DD4730>
+ Tests
test_testcases.py 33 0:00:04.834689
FAILED test_lifeeazypost 0:00:01.644355
AssertionError: assert False
+ + where False = <APIResponse url='http://staging-api.vivifyhealthcare.com/User/Allergies/' status=400 status_text='Bad Request'>.ok
Setup
Captured stdout setup
6 entries
+
Call
api_lifeeazy = <playwright._impl._fetch.APIRequestContext object at 0x0000020354DE1AE0>
+ @pytest.mark.Lifeeazy_test
def test_lifeeazypost(api_lifeeazy: APIRequestContext) -> None:
ab = list1
for values in ab:
@@ -58,7 +44,7 @@
'Environment Name': EnvironmentName,
"TestCase Version": Testcase_Version,
"Project Name": Project_Name}
- collection1.insert_one(data)
+ collection2.insert_one(data)
# if values in list1:
# list1.remove(values)
# print(len(list1), "mani")
@@ -82,7 +68,7 @@
'Environment Name': EnvironmentName,
'TestCase Version': Testcase_Version,
'Project Name': Project_Name}
- collection1.insert_one(data)
+ collection2.insert_one(data)
# if values in list1:
# list1.remove(values)
# print(len(list1),"mani")
@@ -107,7 +93,7 @@
'Environment Name': EnvironmentName,
'TestCase Version': Testcase_Version,
'Project Name': Project_Name}
- collection1.insert_one(data)
+ collection2.insert_one(data)
# if values in list1:
# list1.remove(values)
# print(len(list1), "mani")
@@ -117,9 +103,10 @@
E AssertionError: assert False
E + where False = <APIResponse url='http://staging-api.vivifyhealthcare.com/User/Allergies/' status=400 status_text='Bad Request'>.ok
-test_sample_testcases.py:338: AssertionError
Teardown
PASSED test_lifeeazyget 0:00:01.502018
FAILED test_lifeeazyupdate 0:00:01.341278
AssertionError: assert False
- + where False = <APIResponse url='http://staging-api.vivifyhealthcare.com/User/UserAddressUpdate/133/' status=500 status_text='Internal Server Error'>.ok
Setup
Call
api_lifeeazy = <playwright._impl._fetch.APIRequestContext object at 0x000001D9A9DD4730>
+test_testcases.py:156: AssertionError
Teardown
PASSED test_lifeeazyget 0:00:00.503384
FAILED test_lifeeazyupdate 0:00:00.485305
AssertionError: assert False
+ + where False = <APIResponse url='http://staging-api.vivifyhealthcare.com/User/UserAddressUpdate/133/' status=500 status_text='Internal Server Error'>.ok
Setup
Call
api_lifeeazy = <playwright._impl._fetch.APIRequestContext object at 0x0000020354DE1AE0>
+ @pytest.mark.Lifeeazy_test
def test_lifeeazyupdate(api_lifeeazy: APIRequestContext) -> None:
ab = list1
for values in ab:
@@ -156,7 +143,7 @@
'Environment Name': EnvironmentName,
'TestCase Version': Testcase_Version,
'Project Name': Project_Name}
- collection1.insert_one(data)
+ collection2.insert_one(data)
# if values in list1:
# list1.remove(values)
# print(len(list1), "mani")
@@ -180,7 +167,7 @@
'Environment Name': EnvironmentName,
'TestCase Version': Testcase_Version,
'Project Name': Project_Name}
- collection1.insert_one(data)
+ collection2.insert_one(data)
# if values in list1:
# list1.remove(values)
# print(len(list1), "mani")
@@ -204,7 +191,7 @@
'Environment Name': EnvironmentName,
'TestCase Version': Testcase_Version,
'Project Name': Project_Name}
- collection1.insert_one(data)
+ collection2.insert_one(data)
# if values in list1:
# list1.remove(values)
# print(len(list1), "mani")
@@ -214,9 +201,10 @@
E AssertionError: assert False
E + where False = <APIResponse url='http://staging-api.vivifyhealthcare.com/User/UserAddressUpdate/133/' status=500 status_text='Internal Server Error'>.ok
-test_sample_testcases.py:525: AssertionError
Teardown
FAILED test_lifeeazydelete 0:00:01.551486
AssertionError: assert False
- + where False = <APIResponse url='http://staging-api.vivifyhealthcare.com/User/RemoveUserApi/291/' status=400 status_text='Bad Request'>.ok
Setup
Call
api_lifeeazy = <playwright._impl._fetch.APIRequestContext object at 0x000001D9A9DD4730>
+test_testcases.py:347: AssertionError
Teardown
FAILED test_lifeeazydelete 0:00:00.481285
AssertionError: assert False
+ + where False = <APIResponse url='http://staging-api.vivifyhealthcare.com/User/RemoveUserApi/291/' status=400 status_text='Bad Request'>.ok
Setup
Call
api_lifeeazy = <playwright._impl._fetch.APIRequestContext object at 0x0000020354DE1AE0>
+ @pytest.mark.Lifeeazy_test
def test_lifeeazydelete(api_lifeeazy: APIRequestContext) -> None:
ab = list1
for values in ab:
@@ -253,7 +241,7 @@
'Environment Name': EnvironmentName,
'TestCase Version': Testcase_Version,
'Project Name': Project_Name}
- collection1.insert_one(data)
+ collection2.insert_one(data)
# if values in list1:
# list1.remove(values)
# print(len(list1), "mani")
@@ -277,7 +265,7 @@
'Environment Name': EnvironmentName,
'TestCase Version': Testcase_Version,
'Project Name': Project_Name}
- collection1.insert_one(data)
+ collection2.insert_one(data)
# if values in list1:
# list1.remove(values)
# print(len(list1), "mani")
@@ -301,7 +289,7 @@
'Environment Name': EnvironmentName,
'TestCase Version': Testcase_Version,
'Project Name': Project_Name}
- collection1.insert_one(data)
+ collection2.insert_one(data)
# if values in list1:
# list1.remove(values)
# print(len(list1), "mani")
@@ -311,262 +299,4 @@
E AssertionError: assert False
E + where False = <APIResponse url='http://staging-api.vivifyhealthcare.com/User/RemoveUserApi/291/' status=400 status_text='Bad Request'>.ok
-test_sample_testcases.py:617: AssertionError
Teardown
PASSED test_example1 0:00:02.042268
Setup
Call
Captured stdout call
5
-/User/GetLabLevelsByFamilyId/1
-/User/RemoveUserApi/291/
-/User/UserAddressUpdate/133/
-/User/AllergiesGetApi/
-/User/Allergies/
-
Teardown
PASSED test_example2 0:00:03.018234
Setup
Call
Captured stdout call
4
-/User/RemoveUserApi/291/
-/User/UserAddressUpdate/133/
-/User/AllergiesGetApi/
-/User/Allergies/
-
Teardown
FAILED test_ivinpost 0:00:02.377819
AssertionError: assert False
- + where False = <APIResponse url='http://172.105.37.117:8000/candidate_profile/SocialmediaView/' status=400 status_text='Bad Request'>.ok
Setup
Captured stdout setup
6 entries
-
Call
api_ivin = <playwright._impl._fetch.APIRequestContext object at 0x000001D9A9DD75E0>
-
- def test_ivinpost(api_ivin: APIRequestContext) -> None:
- ab = list2
- for values in ab:
- url = values['url']
- method = values['method']
- headers = values['headers']
- payload = values['payload']
- staging_version = values['staging_version']
- EnvironmentName = values['EnvironmentName']
- Testcase_Version = values['Testcase_Version']
- Project_Name = values['Project_Name']
- Test = values['Test']
- headers23 = {'Content-Type': 'application/json', 'Authorization': f"Bearer {headers}"}
- if method == 'POST' and Test == 'Spost':
- cleaned_string = url.replace("\u200B", "")
- post_todo = api_ivin.post(url=str(cleaned_string), headers=headers23, data=payload)
- try:
- test1 = post_todo.json()
- if test1['Status'] == 200:
- data = {"Test Case-Id": "1",
- "Pre condition": "Add the candidate profile for social media view",
- "Flow ": "SociaMedia Post",
- "App Name": "Ivin_Pro",
- "Expected Output": "200",
- "Actual Output": str(test1),
- "Endpoint Name": str(url),
- "Section Name": "Candidate_Profile",
- "API Type": "User",
- "Status Code": test1['Status'],
- "Status": "Success",
- " TestCase Status API": "Pass TestCase",
- "Test Run Date": DateTime,
- "Test Releated To Version": str(staging_version),
- 'Environment Name': EnvironmentName,
- 'TestCase Version': Testcase_Version,
- 'Project Name': Project_Name}
- collection2.insert_one(data)
- else:
- data = {"Test Case-Id": "1",
- "Pre condition": "Add the candidate profile for social media view",
- "Flow ": "SociaMedia Post",
- "App Name": "Ivin_Pro",
- "Expected Output": "400",
- "Actual Output": str(test1),
- "Endpoint Name": str(url),
- "Section Name": "Candidate_Profile",
- "API Type": "User",
- "Status Code": test1['Status'],
- "Status": "Fail",
- " TestCase Status API": "Fail TestCase",
- "Test Run Date": DateTime,
- "Test Releated To Version": str(staging_version),
- 'Environment Name': EnvironmentName,
- 'TestCase Version': Testcase_Version,
- 'Project Name': Project_Name}
- collection2.insert_one(data)
- except Exception as e:
- data = {"Test Case-Id": "1",
- "Pre condition": "Give the correct url&data",
- "Flow ": "SociaMedia Post",
- "App Name": "Ivin_Pro",
- "Expected Output": '404',
- "Actual Output": str(post_todo),
- "Endpoint Name": str(url),
- "Section Name": "Candidate_Profile",
- "API Type": "User",
- "Status Code": 404,
- "Status": "Not Found",
- " TestCase Status API": "Fail TestCase",
- "Test Run Date": DateTime,
- "Test Releated To Version": str(staging_version),
- 'Environment Name': EnvironmentName,
- 'TestCase Version': Testcase_Version,
- 'Project Name': Project_Name}
- collection2.insert_one(data)
-> assert post_todo.ok
-E AssertionError: assert False
-E + where False = <APIResponse url='http://172.105.37.117:8000/candidate_profile/SocialmediaView/' status=400 status_text='Bad Request'>.ok
-
-test_sample_testcases.py:878: AssertionError
Teardown
PASSED test_ivinget 0:00:02.468406
FAILED test_ivinupdate 0:00:01.191471
AssertionError: assert False
- + where False = <APIResponse url='http://172.105.37.117:8000/candidate_profile/UpdateSocialmedia/203/' status=400 status_text='Bad Request'>.ok
Setup
Call
api_ivin = <playwright._impl._fetch.APIRequestContext object at 0x000001D9A9DD75E0>
-
- def test_ivinupdate(api_ivin: APIRequestContext) -> None:
- ab = list2
- for values in ab:
- url = values['url']
- method = values['method']
- headers = values['headers']
- payload = values['payload']
- staging_version = values['staging_version']
- EnvironmentName = values['EnvironmentName']
- Testcase_Version = values['Testcase_Version']
- Project_Name = values['Project_Name']
- Test = values['Test']
- headers23 = {'Content-Type': 'application/json', 'Authorization': f"Bearer {headers}"}
- if method == 'PUT' and Test == 'Sput':
- cleaned_string = url.replace("\u200B", "")
- put_todo = api_ivin.put(url=str(cleaned_string), headers=headers23, data=payload)
- try:
- test1 = put_todo.json()
- if test1['Status'] == 200:
- data = {"Test Case-Id": "3",
- "Pre condition": "Updating Social media by using candidate profileid",
- "Flow ": "Update",
- "App Name": "Ivin_Pro",
- "Expected Output": "200",
- "Actual Output": str(test1),
- "Endpoint Name": str(url),
- "Section Name": "Candidate_Profile",
- "API Type": "User",
- "Status Code": test1['Status'],
- "Status": "Success",
- " TestCase Status API": "Pass TestCase",
- "Test Run Date": DateTime,
- "Test Releated To Version": str(staging_version),
- 'Environment Name': EnvironmentName,
- 'TestCase Version': Testcase_Version,
- 'Project Name': Project_Name}
- collection2.insert_one(data)
- else:
- data = {"Test Case-Id": "3",
- "Pre condition": "Enter the valid details",
- "Flow ": "Update SocialMedia",
- "App Name": "Ivin_Pro",
- "Expected Output": "400",
- "Actual Output": str(test1),
- "Endpoint Name": str(url),
- "Section Name": "Candidate_Profile",
- "API Type": "User",
- "Status Code": test1['Status'],
- "Status": "Fail",
- " TestCase Status API": "Fail TestCase",
- "Test Run Date": DateTime,
- "Test Releated To Version": str(staging_version),
- 'Environment Name': EnvironmentName,
- 'TestCase Version': Testcase_Version,
- 'Project Name': Project_Name}
- collection2.insert_one(data)
- except Exception as e:
- data = {"Test Case-Id": "3",
- "Pre condition": "Give the correct url&data",
- "Flow ": "Update",
- "App Name": "Ivin_Pro",
- "Expected Output": '404',
- "Actual Output": str(put_todo),
- "Endpoint Name": str(url),
- "Section Name": "Candidate_Profile",
- "API Type": "User",
- "Status Code": 404,
- "Status": "Not Found",
- " TestCase Status API": "Fail TestCase",
- "Test Run Date": DateTime,
- "Test Releated To Version": str(staging_version),
- 'Environment Name': EnvironmentName,
- 'TestCase Version': Testcase_Version,
- 'Project Name': Project_Name}
- collection2.insert_one(data)
-> assert put_todo.ok
-E AssertionError: assert False
-E + where False = <APIResponse url='http://172.105.37.117:8000/candidate_profile/UpdateSocialmedia/203/' status=400 status_text='Bad Request'>.ok
-
-test_sample_testcases.py:1032: AssertionError
Teardown
FAILED test_ivindelete 0:00:04.813745
AssertionError: assert False
- + where False = <APIResponse url='http://172.105.37.117:8000/candidate_profile/DeleteSocialmedia/211/' status=400 status_text='Bad Request'>.ok
Setup
Call
api_ivin = <playwright._impl._fetch.APIRequestContext object at 0x000001D9A9DD75E0>
-
- def test_ivindelete(api_ivin: APIRequestContext) -> None:
- ab = list2
- for values in ab:
- url = values['url']
- method = values['method']
- headers = values['headers']
- payload = values['payload']
- staging_version = values['staging_version']
- EnvironmentName = values['EnvironmentName']
- Testcase_Version = values['Testcase_Version']
- Project_Name = values['Project_Name']
- Test = values['Test']
- headers23 = {'Content-Type': 'application/json', 'Authorization': f"Bearer {headers}"}
- if method == 'DELETE' and Test == 'Sdelete':
- cleaned_string = url.replace("\u200B", "")
- delete_todo = api_ivin.delete(url=str(cleaned_string), headers=headers23, data=payload)
- try:
- test1 = delete_todo.json()
- if test1['Status'] == 200:
- data = {"Test Case-Id": "4",
- "Pre condition": "Delete the Social media for particular candidate profileid",
- "Flow ": "Delete method",
- "App Name": "Ivin_Pro",
- "Expected Output": "200",
- "Actual Output": str(test1),
- "Endpoint Name": str(url),
- "Section Name": "Candidate_Profile",
- "API Type": "User",
- "Status Code": test1['Status'],
- "Status": "Success",
- " TestCase Status API": "Pass TestCase",
- "Test Run Date": DateTime,
- "Test Releated To Version": str(staging_version),
- 'Environment Name': EnvironmentName,
- 'TestCase Version': Testcase_Version,
- 'Project Name': Project_Name}
- collection2.insert_one(data)
- else:
- data = {"Test Case-Id": "4",
- "Pre condition": "Enter the valid id",
- "Flow ": "Delete method",
- "App Name": "Ivin_Pro",
- "Expected Output": "400",
- "Actual Output": str(test1),
- "Endpoint Name": str(url),
- "Section Name": "Candidate_Profile",
- "API Type": "User",
- "Status Code": test1['Status'],
- "Status": "Fail",
- " TestCase Status API": "Fail TestCase",
- "Test Run Date": DateTime,
- "Test Releated To Version": str(staging_version),
- 'Environment Name': EnvironmentName,
- 'TestCase Version': Testcase_Version,
- 'Project Name': Project_Name}
- collection2.insert_one(data)
- except Exception as e:
- data = {"Test Case-Id": "4",
- "Pre condition": "Give the correct url&data",
- "Flow ": "Delete method",
- "App Name": "Ivin_Pro",
- "Expected Output": '404',
- "Actual Output": str(delete_todo),
- "Endpoint Name": str(url),
- "Section Name": "Candidate_Profile",
- "API Type": "User",
- "Status Code": 404,
- "Status": "Not Found",
- " TestCase Status API": "Fail TestCase",
- "Test Run Date": DateTime,
- "Test Releated To Version": str(staging_version),
- 'Environment Name': EnvironmentName,
- 'TestCase Version': Testcase_Version,
- 'Project Name': Project_Name}
- collection2.insert_one(data)
-> assert delete_todo.ok
-E AssertionError: assert False
-E + where False = <APIResponse url='http://172.105.37.117:8000/candidate_profile/DeleteSocialmedia/211/' status=400 status_text='Bad Request'>.ok
-
-test_sample_testcases.py:1109: AssertionError
Teardown
PASSED test_ivingetall 0:00:05.417862
PASSED test_ivingetall1 0:00:04.167011