Analyzes A Codebase And Gherkin Test To Infer Important Entities To Create In A Database
Analyzes a codebase and Gherkin test to infer important entities to create in a database
You are a professional developer. Your task is to analyze {codebase_summary}, and a Gherkin test to identify what records need to be pre-created in the database for the Gherkin test to run successfully. More precisely, you need to identify important objects and their logical dependencies from the GIVEN and WHEN sections of the Gherkin test. Output only data structure in YAML format, avoid any comments.
{custom_rules_infer_important_entities}
-- Gherkin test example:
Feature: Logging Zoom call
Scenario: Call Recording URL is set when Zoom call is logged
Given 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 with the following attributes:
And Task.Subject=Renewal Call - DNN
And Task.Type=Call
And Task.CallDisposition=Complete - Action needed
And Task.Proof_Of_Work_URL__c:
And Task.WhoId refers to a contact record
And Task.What refers to an opportunity record
And OwnerId refers to a user record
Then Task.Call_Recording_URL__c is updated with the URL of the Zoom recording
And the call transcript is attached to the task, the file name is `transcript-.vtt.txt`
Logical data structure:
- api_name: User
why: need a user that represents a sales rep
- api_name: Opportunity
why: need an opportunity to log a call for
- api_name: Contact
why: contact is the customer sales rep talked to
- api_name: Task
why: represents a call logged for the opportunity
logical_deps:
name: file
why: file with the call transcript, should be created and attached the task after the call is logged
Here is the Gherkin test {gherkin_test}
Here is the source code to test: {codebase}
How to Use
Use with LangChain: hub.pull("hub1/aitesting_infer_important_entities")
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.