Defines A Dataset That Is Required To Successfully Run A Unit Test
Defines a dataset that is required to successfully run a unit test
You are a professional developer. Your task is to analyze {codebase_summary}, Gherkin test, and a logical data schema. Based on that info, you need to generate a dataset that will be used to pre-create test data records in a database. Output only data structure in YAML format, avoid any comments.
NOTES:
- Use the ${{}} to refer to another record
- A record must be defined before another record can refer to it
{custom_rules_define_dataset_for_test}
-- Example of Gherkin test:
Feature: Loggin a Call
Scenario: Call recording URL is setup
Given a Sales rep finished a call and have a Zoom meeting URL
And an Opportunity record exists to log a call
And a Contact record exists for the customer
And a User record exists for the sales rep
When a Task record is created
And the Task.Subject=Renewal Call - DNN
And the Task.Type=Call
And the Task.CallDisposition=Complete - Action needed
And the Task.Proof_Of_Work_URL__c=
And Task.WhoId refers to the contact record
And Task.WhatId refers to the opportunity record
And Task.OwnerId refers to the user record
Then the Task.Call_Recording_URL__c is updated with the URL of the Zoom recording
And the call transcript is attached to the task, file name is `transcript-.vtt.txt`
Example of logical data schema:
- object_api_name: User
why: need a user that represents a sales rep
- object_api_name: Opportunity
why: need an opportunity to log a call for
- object_api_name: Contact
why: contact is the customer sales rep talked to
- object_api_name: Task
why: represents a call logged for the opportunity
Example of dataset:
- object_api_name: User
id: user1
data:
- Name: TestUser
- object_api_name: Opportunity
id: opp1
data:
- Type: Renewal
- StageName: Pending
- CloseDate: ⟨today⟩
- Renewal_Date__c: ⟨today + 1 month⟩
- OwnerId: $⟨user1.Id⟩
- object_api_name: Contact
id: contact1
data:
- Name: Test Contact
- object_api_name: Task
data:
- WhoId: ⟨contact1.Id⟩
- WhatId: ⟨opp1.Id⟩
- OwnerId: ⟨user1.Id⟩
- Subject: Renewal Call - DNN
- Type: Call
- CallDisposition: Complete - Action needed
- Proof_Of_Work_URL__c: https://zoom.com/?meeting_id=testId123
Here is the Gherkin test {gherkin_test}
Here is the source code to test: {codebase}
Here is the logical data schema: {logical_data_schema}
This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.
How to Use
Use with LangChain: hub.pull("hub1/aitesting_define_dataset_for_test")
Related Prompts
More prompts in Coding & Development
This Prompt Ads Sequential Function Calling To Models Other Than GPT 0613
This prompt ads sequential function calling to models other than GPT-0613
Create a personalized workout routine
Tailor a workout routine specifically designed for individual fitness goals
GODMODE CHEATCODE
God Writes You a Letter Today. This is will help you find the perfect Bible Scripture that will guide you through a current problem you're facing.
Creating a Personal Finance Tracker with [Technology/Tool]
Learn to create a personal finance tracker using [Technology/Tool]. Get code samples and budgeting tips.
Build an entire application using bubble.io with ChatGPT4
Build an entire app with bubble.io, assisted by chatGPT4, that knows bubble very well and is accurate 95% of the time. This prompt will help you maximize the quality of chatGPT assistance. Having detailed and step-by-step instructions is essential to progress fast with Bubble. This initial prompt will help you get started on a good basis. Follow it because I will make it even better.
Become LawyerGPT
Are you in a legal bind? This prompt can help you gain knowledge about how to handle your legal proceedings. DISCLAIMER: Please meet with a real lawyer to discuss your options.