Microsoft QA engineer interviews test automation frameworks, test strategy, CI integration, performance testing, and debugging complex multi-service systems.
LoadTestOrchestrator that can distribute load across multiple services in a controlled manner.LoadTestOrchestrator that can manage multiple load test execution requests and dynamically distribute them to different services based on load balancing strategies.def addTestRequest(serviceName: str, load: int) -> None: : Queues a load test request for execution with a specified load.def executeTests() -> None: : Executes all queued load test requests and returns test results.Example 1:orchestrator = LoadTestOrchestrator(); orchestrator.addTestRequest('serviceA', 50); orchestrator.addTestRequest('serviceB', 70); orchestrator.executeTests()1 <= serviceName.length <= 1001 <= load <= 1000.FlakyTestDetector that monitors test results and flags tests that exhibit flaky behavior.FlakyTestDetector containing methods to add test results and identify flaky tests based on a threshold of allowed failures.def addTestResult(testName: str, result: str) -> None: : Adds a test result where result is either 'pass' or 'fail'.def getFlakyTests(threshold: int) -> List[str]: : Returns a list of test names flagged as flaky if they exceed the given threshold of failures.Example 1:detector = FlakyTestDetector(); detector.addTestResult('testA', 'fail'); detector.addTestResult('testA', 'pass'); detector.addTestResult('testA', 'fail'); detector.getFlakyTests(1)
Output: ['testA']
Explanation: 'testA' failed twice out of the last three executions. It is considered flaky.Constraints:
- 1 <= testName.length <= 100
- threshold > 0`.Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free