Pre-Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

iSQI ISTQB Certified Tester Advanced Level, Test Automation Engineering CTAL-TAE Question # 5 Topic 1 Discussion

iSQI ISTQB Certified Tester Advanced Level, Test Automation Engineering CTAL-TAE Question # 5 Topic 1 Discussion

CTAL-TAE Exam Topic 1 Question 5 Discussion:
Question #: 5
Topic #: 1

An API's response to a request made to the corresponding endpoint should return some specific data about a payment transaction in JSON format. In particular, your goal is to write the test automation code, keeping it as short as possible, aimed at determining whether that response includes certain properties (transaction_id, amount, status, timestamp) with the data types and formats expected. Assuming that the TAF provides all the necessary support to validate the specified API response, how would you BEST achieve your goal?


A.

Specify the schema for the expected response data (properties, data types, and formats) and validate the actual response data against this schema


B.

Write a single assertion for each property to check whether the data types and formats for that property are as expected in the actual response


C.

Use an artificial intelligence algorithm based on machine learning and image recognition to implement a self-healing capability


D.

Write custom code that parses the actual response data and checks whether the extracted properties, data types, and formats are as expected


Get Premium CTAL-TAE Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.