Modern QA2026Exercises
Log inJoin

Library Book 14 Exercises

Exercises

6.1🔒BeginnerExercise 26: Write a GraphQL query test that fetches a user by ID and verifies the response contains name and email fields without errors.44 words
6.2🔒IntermediateExercise 28: Write a test that sends an invalid GraphQL query (syntax error) and verifies the errors array contains a meaningful error…51 words
6.3🔒AdvancedExercise 30: Build a GraphQL security test suite that includes: (a) query depth limit testing with queries nested 5, 10, 15, and 20 levels…51 words
6.4🔒Q&AResume phrasing- Built GraphQL test framework with dedicated query/mutation helpers and automatic error-array inspection, covering 35 queries and 15…74 words
6.5🔒Q&ACover letter framingGraphQL's flexibility creates a fundamentally different testing surface than REST. Because GraphQL returns HTTP 200 for most errors, every…72 words
6.6🔒Q&AInterview framing"GraphQL changes the testing calculus completely. You cannot trust status codes -- a 200 might contain a full errors array. So I build a…143 words
6.7🔒Q&AWhat not to say- "I test GraphQL the same way I test REST -- I just check the status code." -- GraphQL returns 200 for most errors; status-code testing is…141 words
6.8🔒Q&AQuestion 1Prompt: Your GraphQL API returns { "data": { "user": null }, "errors": [] } -- the user is null, but the errors array is empty. Is this a…258 words
6.9🔒Q&AQuestion 2Prompt: An attacker could send a query like { users(first: 1000) { posts(first: 1000) { comments(first: 1000) { body } } } } to your…255 words
6.10🔒Q&AQuestion 3Prompt: Your team is migrating from REST to GraphQL. The REST tests are comprehensive. How do you approach building the GraphQL test suite…232 words
6.11🔒Q&AQuestion 4Prompt: How do you test field-level authorization in GraphQL? For example, a User type has a salary field that only HR admins should see.620 words
6.12🔒Generating Python Code from Proto FilesBefore you can write gRPC tests, you need to generate the Python client code:242 words
6.13🔒Testing Server Streaming0 words
6.14🔒Testing Bidirectional StreaminggRPC has built-in deadline propagation -- a client can set a deadline, and if the server does not respond in time, the call fails with…81 words