ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 18 - CTAL-TTA discussion

Report
Export

An enhancement to a Social Media application allows for the creation of new Groups. Any number of existing application members can be added to a Group. An attempt to add a non-existent member of the application to a Group will result in an error, as will an attempt to add the same member twice. Members can be removed from an existing Group. An existing Group can be deleted but only if there are no current members attached to it.

Which one of the following Keyword-driven input tables provides the BEST test coverage of this enhancement?

Table 1

Keyword Group Id Member Id

Create.Group Group3

Add_Member Group3 @Member1

Add.Member Group3 (a)Member2

Delete_Group Group3

Remove.Member Group3 @Memberl

Remove_Member Group3 @)Member2

Delete.Group Group3

Result

Group created

Member added to Group

Member added to Group

Error - Group not empty

Member removed from group

Member removed from group

Group deleted

Table 2

Keyword Group Id Member Id Result

Create.Group Groupl Group created

Add.Member Groupl Member4 Error - member does not exist

Add.Member Groupl (Memberl Member added to Group

Delete.Group Groupl Error - Group not empty

Remove_Member @Member 1 Member removed from group

Delete.Group Groupl Group deleted

Table 3

Keyword Group Id Member Id Result

Create.Group Group3 Group created

Add.Member Group3 Member9 Error - member does not exist

Add.Member Group3 (Memberl Member added to Group

Add_Member Group 3 (Memberl Error - member already in group

Delete.Group Group3 Error - Group not empty

Remove-Member Groups (Member 1 Member removed from group

Delete.Group Groups Group deleted

Table 4

Keyword Group Id Member Id Result

Create.Group Groupl Group created

Add.Member Groupl @Member3 Member added to Group

Add.Member Groupl @Member3 Error - member already in group

Delete.Group Groupl Error - Group not empty

Remove.Member Groupl @Member1 Member removed from group

Delete.Group Groupl Group deleted

SELECT ONE OPTION

A.
Table 4
Answers
A.
Table 4
B.
Table 3
Answers
B.
Table 3
C.
Table 1
Answers
C.
Table 1
D.
Table 2
Answers
D.
Table 2
Suggested answer: B

Explanation:

Table 3 provides the best test coverage for the described scenario, as it includes various key test conditions:

Attempting to add a non-existent member, resulting in an error.

Trying to add a member twice to the same group, leading to an error for duplicate entry.

Removing a member from the group.

Attempting to delete a group that is not empty, which correctly results in an error, and finally deleting a group when it is empty.

This table most comprehensively covers the functionalities and error handling specified in the enhancement details, effectively testing all scenarios including normal and exceptional behavior .

asked 18/09/2024
Komalaharshini Basireddygari
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first