question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement Record Types

See original GitHub issue

Currently 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:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
lordofthejarscommented, Feb 14, 2017

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 😃

0reactions
tommysitucommented, Feb 16, 2017

@lordofthejars Thanks for your contribution, will let you know when it is released.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found