Sobes.tech

QA / QA Automation

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?

206

Provide a specific example of a testing strategy you have developed.

202

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]

199

What command-line tools or utilities have you used for working with Kafka?

196

What do you mean by the terms "test strategy," "architecture," and "solution"?

195

What are generators in Python? What is the name of the iterator that uses yield under the hood?

195

What other bottlenecks might exist in a solution with image transfer via Kafka besides overhead?

190

@pytest.fixture(scope="session") def a(): return [1, 2] def test_one(a): a.append(3) def test_two(a): print(len(a))

190

Why is this test marked as flaky, even though it looks simple?

190

How are exceptions handled in Python? When is try/except used?

189

Will the use of function B be the same in the first and second cases?

189

@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())

188

What will change if the list is modified using the extend method?

185

How did you conduct work on detailing and designing your tests?

182

Why does using yield prevent a new database call on each invocation? How does this affect the purity and integrity of test data?

181

Tell us about your experience, especially in test automation. What tasks have you performed — API testing, UI testing, which ones more, which ones less?

181

What should be done if multiple form elements, such as passport fields, have the same id?

180

#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)

179
/5