Skip to content

Simulator and tests

Before other systems use a Everything Rate needs to price one insurance product: its models, rate tables, lists of values and constants.Glossary →, check it. The Simulator calculates one case and shows every step. Tests keeps cases with the answer the tariff must give, runs them after each change, and shows how What the client pays for a contract over a term, taxes and fees included. It is billed in installments.Glossary → move from one version to another (In Rate, the same test cases run on two versions of a tariff, to see how much each premium moves before you publish.Glossary →). To calculate a whole spreadsheet at once, see Calculate a file.

  1. Load a test case fills the inputs with a saved case.
  2. The Inputs: what a caller would send. Those marked * are required.
  3. Live: while it is on, the result is calculated again as you type, with every step it went through.

The The Rate screen where you try a tariff with your own values and see every step of the calculation. Nothing is saved.Glossary → and calculating a file in your browser need Rate: tariffs: See, and so does reading A file calculated in Rate and kept on the server, to come back to it, filter its rows and see how the premiums spread.Glossary →. Keeping a calculation of a file, deleting one and the impact of the The copy of a tariff, a form or a template that you change. Nobody outside your team uses it: calculations, respondents and documents use what you published.Glossary → on one need Rate: tariffs: Full: keeping calculates on the server and removes the oldest kept calculations. Creating, changing and running Inputs or answers saved with the result they must give, tried again after each change. Rate and Studio both keep them.Glossary → needs Rate: tariffs: Full. Comparing two versions (impact analysis) is an option of your subscription, feature.rate.impact: without it, Compare with is not offered in a A case run on a journey's draft to try it: nothing is handed off for real, and it is deleted after 7 days.Glossary →, nor Impact of the draft on a kept calculation. Calculating a file is an option of your subscription too, feature.rate.batch: without it, Calculate a file is not offered, and kept calculations can be neither read nor made.

  1. Open Simulator.
  2. Under Calculate with, choose the Draft (being edited) (your saved changes) or a published A frozen, numbered copy of a tariff's draft, in force from a date. Calculations use the release in force on their date.Glossary →, as the API calculates it. Under Model, choose the model to run: usually the The model of a tariff that a calculation runs. The other models are sub-models it calls.Glossary →.
  3. Fill the Inputs. Fields marked * are required. A A closed choice in a tariff, such as the zones or the levels of cover. Each option can carry values, such as a coefficient per zone.Glossary → shows each option by its name; the key it stores is in the option’s tooltip. With Live on, the result is recalculated half a second after your last change, so a number you are still typing is not calculated; otherwise choose Calculate.
  4. Read the Result: the How a Rate calculation ends: Quoted with a premium, Refer to an underwriter, or Decline with a reason.Glossary → and the outputs. Under the inputs and the result, How it was calculated takes the whole width: Step by step lists every step in the order it ran, and beside it Path in the model draws the model with the steps and Another system the suite calls for you, such as a lookup service or a tool of your own, with its address and its access, set once in the console.Glossary → the calculation went through in green.
  • Click a step in Step by step, or its Show on the path button: the step is outlined on the path and brought to the middle. Click a step on the path: the list scrolls to it and outlines it.
  • The path moves like the model editor’s canvas: drag the empty canvas to move it, Ctrl or Cmd and the wheel to zoom, 0 to see the whole model. Right-click the empty canvas for its actions.
  • Arrange the steps, top to bottom (Shift+A) lays the steps out as the editor’s Arrange does, only for reading: the model is not changed. Steps saved on top of each other are arranged from the start.
  • Full screen (F) shows the path over the whole window, with the overview map; Esc goes back.

A result that is Refer to an underwriter or Decline is titled by the label of the end step the calculation reached, with its message and, in small print, the Reason code that systems read. When an input is missing or does not fit, the result says Check the inputs and lists each problem by the name of the input, with the number of the item for a list (for example “Bonus-malus coefficient: must be at most 3.5”, or “Additional drivers #1”). Technical error is kept for a fault in the model or the engine. While you type, the result is greyed and says Updating the result until the new calculation replaces it, and a problem shown under an input goes as soon as you change that input.

The Calculation date is what today() returns, used for ages and durations: change it to price a contract starting on another day.

To see what would change without touching the model:

  • Pin a field: every step that would change it keeps your value instead (Pin and recalculate).
  • Force a case of a branch, or Force: Otherwise, to test a path without changing the inputs.

Remove all clears them. Compare with runs the same inputs on another version and shows how each result changes.

Inputs as JSON shows the inputs as the inputs object the calculation API takes, with a button that copies them. To use inputs received from another system, paste them under Paste other inputs, then Use these inputs.

With Docs in your Your company as the suite knows it: its people, its records and its settings. Everything you see belongs to one organization, and nobody from another organization sees it.Glossary →’s What your organization subscribes to: the apps and options it may use, and limits such as the number of users or the storage.Glossary →, print a A priced proposal made to a client, valid until a date.Glossary → from the case you calculated without leaving Rate:

  1. With the main model and a result that gives a price, choose Make a document.
  2. Choose one of the Docs templates built on this tariff. Each says the version of the template that makes documents, and the version of the tariff it was built on. A template not published yet, or whose published version is not built on this tariff, is shown with what to do in Docs.
  3. Choose Make the document. Docs makes it from the same inputs and asks Rate for the price in the same call: with the release you chose under Calculate with, or, on the draft, with the release in force on the calculation date (the draft is never used for documents). The PDF opens in place, and Open in Docs shows the document with the others.

Make a document is shown, not offered, with the reason when your organization has no Docs, when your A named set of rights, such as "Claims handlers", given to people and to API keys. People get what their roles allow, never a right on its own.Glossary → cannot make and open Docs documents (Docs: templates: See, Docs: documents: Work on and Docs: documents: Full), or when the calculation gives no price. When no template is built on the tariff yet, Make a quote template makes one as a draft in Docs (with Docs: templates: Full): publish it there, then come back. See Rate and Docs without Studio.

The fastest way: in the simulator, fill in a typical customer, check the premium, and choose Save as a test case. The inputs and the result you see become the expected answer.

By hand, in Tests, choose New test case:

  1. Give it a Name.
  2. If you need them, open More options: a Description, Tags (words to group cases, separated by commas), the Model it runs (usually The main model) and a fixed Calculation date, so ages and durations stay the same over time. More options opens by itself on a case that has one of them.
  3. Fill the inputs.
  4. Under Results to check, choose the expected Outcome (or Any), then Add a result to check: a Result, a Check and an Expected value. The checks are is exactly, is about (±) and is about (±%) with a Tolerance, is more than, is less than, is between (a Lowest value and a Highest value, both included, for numbers and dates), contains, starts with and is empty. To check inside a list, write a path like drivers[0].premium.
  5. Choose Create the test case.

In the list, a case’s ⋯ menu, or a right click on its row, offers Run this case, Open in the simulator, Edit and Delete.

Export downloads every case as .json. Import brings cases in:

  1. Choose a .json file exported from Rate, or a .csv or Excel .xlsx sheet with a header row and one case per row.
  2. For a sheet, check What each column holds. Columns are matched by key or by name; correct any that is wrong. A column holds the Name of the case, an Input of the main model, a Result to check, the Expected outcome (ok, refer, decline or error), the Calculation date, the Tags, or Nothing to import.
  3. For a result to check, choose under How to read it how the cell compares with what the tariff gives: exactly, with a tolerance, with a percentage, between two values (write the cell 100..200), above or below. For a date column, choose its format: yyyy-MM-dd, dd/MM/yyyy, MM/dd/yyyy, d/M/yyyy, M/d/yyyy, dd-MM-yyyy, yyyy/MM/dd or dd.MM.yyyy; Rate proposes the one that reads the most cells, and Excel dates are read as they are.
  4. Cells that cannot be read are listed with their row and column. Fix the file, or Leave out the rows with a problem.
  5. Choose Add them to the existing cases or Replace all the existing cases, then Import.
  1. In Tests, choose Run the tests.
  2. Under Run on, choose the draft or a release; under Cases, all of them or one A label of your own put on records to find and group them, such as "VIP" or "To check".Glossary →; and, if you wish, a version to compare with.
  3. Choose Run.

The test run lists each case with its What Verify's checks make of a document: passed, needs a look, or failed. A person then accepts or refuses it.Glossary →, what was Expected and what it Got. Open in the simulator shows every step of a failing case. Run again repeats the same run after a fix. Each run keeps its results under Recent runs.

When a run compares two versions (for example the draft with the live release), Impact analysis shows how the results of the same cases change: how many cases change, the outcomes that change, the Average change of each result in percent, and the total before and after. Impact analysis is an option of your subscription (feature.rate.impact); on a kept calculation of a file, Impact of the draft does the same on real rows.

  • The calculation stopped: the result names the step and the reason; open How it was calculated.
  • This version has problems: some results may be missing: fix the problems listed on the Overview.
  • A test fails after a change: compare Expected and Got, open it in the simulator, then fix the model or update the case if the new result is right.

When a price is empty or wrong and you cannot tell why, My price is empty or wrong walks you to the cause.