Test Case

Verb: testCase

Available from: <Enterprise>

Creates a test case for a specific command, using information such as: assigned id, title and result of its execution.

Syntax

testCase --id(String) --title(String) [--description(String)] [--category(String)] [--preconditions(String)] [--steps(String)] [--requerimentIds(String)] [--bugIds(String)] [--tags(String)] --result(String)

Inputs

Script Designer Required AcceptedTypes Description
--id Id Required Text Identification number assigned to the test case.
--title Title Required Text Test case title.
--description Description Optional Text Description of the test case.
--category Category Optional Text Category to classify the test case.
--preconditions Preconditions Optional Text Text informing which are the necessary preconditions for the execution of the test case.
--steps Steps Optional Text Step by step to follow for the execution of the test case.
--requerimentIds Requeriment Ids Optional Text Identification numbers of requirements related to the test case.
--bugIds Bug Ids Optional Text Bug identification numbers related to the test case.
--tags Tags Optional Text Tags for filtering test cases.
--result Result Required Text Expected result of the test case performed.

Example

The Test Case command simulates the creation of a test case related to the Download Email Attachments command.

defVar --name email --type String
defVar --name receiver --type String
testCase --id 5724 --title "[emailGetAttachment] - Download attachments (with IMAP), using file mask - *.txt" --description "Test the [emailGetAttachment] command, which downloads attachments from an email containing the TXT type\r\n" --steps "1 - Enclose the Download and Read Email command, with the For each (Foreach) command, to retrieve the emails from the established connection (eg: Collection: ${receiver} | Variable: ${email}).\r\n2 - Enter a value in the Message field (eg: ${email}).\r\n3 - Enter a value in the File mask field (eg: *.txt).\r\n4 - Enter a value in the Path field (eg: C:\\Attachments\\Download).\r\n5 - Activate the option to save and start." --bugIds 1345 --tags attachedEmail --result "The system is expected to perform the operation successfully. Downloading the attachment to the directory and returning the corresponding email: Subject: with txt\r\n\r\n\r\nSender: testsibm@gmail.com\r\nBody: IBM Test - [applyClassificationFilter] Command\r\nC:\\attachments\\Download\\file_1.txt\r\n___________________________\r\nSubject: with txt\r\nSender: automaibm@gmail.com\r\nBody: IBM Test - [applyClassificationFilter] Command\r\nC:\\attachments\\Download\\file_1.txt\r\n___________________________"

See Also

  • Assert Condition
  • Expected Exception
  • Parser Expected Exception
  • Throw Exception