What methods can be used to sort a list in Python? How do sort() and sorted() differ? Which method should be used if the list is passed as a parameter in a test and the original list should not be modified?
QA / QA Automation
Provide a specific example of a testing strategy you have developed.
There are 2 lists a = [1, 2, 3] b = [6, 5, 4] It is required to assemble the final list containing all elements of the first, the letter "a" and all elements of the second in reverse order for example c = [1, 2, 3, 'a', 4, 5, 6]
What command-line tools or utilities have you used for working with Kafka?
What do you mean by the terms "test strategy," "architecture," and "solution"?
What are generators in Python? What is the name of the iterator that uses yield under the hood?
What operating systems do you work with — Windows, Linux?
What Linux command line tools do you use?
What other bottlenecks might exist in a solution with image transfer via Kafka besides overhead?
@pytest.fixture(scope="session") def a(): return [1, 2] def test_one(a): a.append(3) def test_two(a): print(len(a))
Why is this test marked as flaky, even though it looks simple?
How are exceptions handled in Python? When is try/except used?
Will the use of function B be the same in the first and second cases?
@pytest.mark.skip("flaky") def test_create_user(self, base_url, generate_faker_data): headers = {"api-key": "special-key"} data = { **generate_faker_data } response = requests.post(f'{base_url}/user', json=data, headers=headers) assert response.status_code == 200, "Error, registration failed" assert "code" in response.json(), "Error, entity not created" response_username = requests.get(f'{base_url}/user/{data["username"]}') assert response_username.json()['username'] == data['username'] assert response_username.json()['id'] == data['id'], "IDs do not match" self.attach_response(response.json())
What will change if the list is modified using the extend method?
How did you conduct work on detailing and designing your tests?
Why does using yield prevent a new database call on each invocation? How does this affect the purity and integrity of test data?
Tell us about your experience, especially in test automation. What tasks have you performed — API testing, UI testing, which ones more, which ones less?
What should be done if multiple form elements, such as passport fields, have the same id?
#Given a URL #[link] #Need to get a list of all user names from the response import requests url = "[link]" def test response = requests.get(url) print(response.json()) names = [user['name'] for user in response.json()] print(names)