# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::TestCase (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.26.0 0.25.0 0.24.2 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.1 0.6.0 0.5.0 0.4.0 Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::TestCase.

Represents a test case.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #creation_time

    def creation_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Timestamp)) --- Output only. When the test was created.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Required. The human-readable name of the test case, unique within the agent. Limit of 200 characters.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The human-readable name of the test case, unique within the agent. Limit of 200 characters.
**Returns**

- (::String) --- Required. The human-readable name of the test case, unique within the agent. Limit of 200 characters.

### #last_test_result

    def last_test_result() -> ::Google::Cloud::Dialogflow::CX::V3::TestCaseResult

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::TestCaseResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TestCaseResult)) --- The latest test result.

### #last_test_result=

    def last_test_result=(value) -> ::Google::Cloud::Dialogflow::CX::V3::TestCaseResult

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::TestCaseResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TestCaseResult)) --- The latest test result.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::TestCaseResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TestCaseResult)) --- The latest test result.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The unique identifier of the test case. [TestCases.CreateTestCase](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TestCases-Client#Google__Cloud__Dialogflow__CX__V3__TestCases__Client_create_test_case_instance_ "Google::Cloud::Dialogflow::CX::V3::TestCases::Client#create_test_case (method)") will populate the name automatically. Otherwise use format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The unique identifier of the test case. [TestCases.CreateTestCase](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TestCases-Client#Google__Cloud__Dialogflow__CX__V3__TestCases__Client_create_test_case_instance_ "Google::Cloud::Dialogflow::CX::V3::TestCases::Client#create_test_case (method)") will populate the name automatically. Otherwise use format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
**Returns**

- (::String) --- The unique identifier of the test case. [TestCases.CreateTestCase](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TestCases-Client#Google__Cloud__Dialogflow__CX__V3__TestCases__Client_create_test_case_instance_ "Google::Cloud::Dialogflow::CX::V3::TestCases::Client#create_test_case (method)") will populate the name automatically. Otherwise use format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.

### #notes

    def notes() -> ::String

**Returns**

- (::String) --- Additional freeform notes about the test case. Limit of 400 characters.

### #notes=

    def notes=(value) -> ::String

**Parameter**

- **value** (::String) --- Additional freeform notes about the test case. Limit of 400 characters.
**Returns**

- (::String) --- Additional freeform notes about the test case. Limit of 400 characters.

### #tags

    def tags() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with "#" and has a limit of 30 characters.

### #tags=

    def tags=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with "#" and has a limit of 30 characters.
**Returns**

- (::Array\<::String\>) --- Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with "#" and has a limit of 30 characters.

### #test_case_conversation_turns

    def test_case_conversation_turns() -> ::Array<::Google::Cloud::Dialogflow::CX::V3::ConversationTurn>

**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::CX::V3::ConversationTurn](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-ConversationTurn)\>) --- The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.

### #test_case_conversation_turns=

    def test_case_conversation_turns=(value) -> ::Array<::Google::Cloud::Dialogflow::CX::V3::ConversationTurn>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Dialogflow::CX::V3::ConversationTurn](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-ConversationTurn)\>) --- The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.
**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::CX::V3::ConversationTurn](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-ConversationTurn)\>) --- The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.

### #test_config

    def test_config() -> ::Google::Cloud::Dialogflow::CX::V3::TestConfig

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::TestConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TestConfig)) --- Config for the test case.

### #test_config=

    def test_config=(value) -> ::Google::Cloud::Dialogflow::CX::V3::TestConfig

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::TestConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TestConfig)) --- Config for the test case.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::TestConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TestConfig)) --- Config for the test case.