Implement Record Types
See original GitHub issueCurrently Hoverfly-java
only supports to recording modes simulate or capture. The problem is that you use one or other, so for example the first time you run a test to capture the traffic against real service you do HoverflyRule.inCaptureMode
. Then when you don’t want to touch the real traffic you need to do HoverflyRule.inSimulateMode
. So as you can see you need to effectively modify the test to adapt the test lifecycle, first run by instantiating Hoverfly in capture and next times for simulate mode.
To avoid this change an aggregation of both modes so you can do something like:
HoverflyRule.inDualMode(SimulationSource, HoverflyConfig, Type)
where Type
can be:
- READ: it always behaves like
inSimulate
- WRITE: it always behaves like
inCapture
- READ_WRITE: if file exists then behave as READ (
simulate
), if not as WRITE (capture
).
I can provide a PR about this.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Create Record Types - Salesforce Help
For opportunity, case, lead, and solution record types, select a business process to associate with the record type. Enter a description. Select Active...
Read more >Record Types in Salesforce - SfdcPoint
Record types in Salesforce allow you to have different business processes, picklist values, and page layouts to different users based on profile ...
Read more >A Guide to Record Types in Salesforce: Should You Use Them?
Record types allow administrators to create a different page layout with custom picklist fields and values for the same business process and ...
Read more >When to use Record Types Vs Page Layouts? - Salesforce Ben
Record types let you offer different business processes, picklist values, and Page layouts to different users. For example, one of the most ...
Read more >Record Types in Salesforce - Intellipaat
Both page layouts and record types play an essential role in your Salesforce data management strategy. With tailor-made page layouts, you'll set and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah ok, sorry at the end I was confused between Hoverfly Go and Hoverfly Java since for me Hoverfly is Hoverfly-Java 😄
Ok then I am going to provide a PR on this project and let’s discuss with code 😃
@lordofthejars Thanks for your contribution, will let you know when it is released.