Test Methods

What is a Test Method?

A test method defines the information required to perform and report a particular type of lab test. It provides the reusable setup that determines what users need to record when carrying out that analysis.

Test methods can include inputs and reported results, units of measurement, calculations, and workbook notes or instructions. Once configured, the same test method can be used whenever that type of analysis is required on a sample.

Test methods may be grouped together to form a test suite, a routine testing regimen for a product.

New to Test Methods?

An interactive walkthrough is available directly within LabHQ to help you get started. Open the Test Methods screen and select View Walkthrough to be guided through the main features and common configuration tasks before using this guide.


Contents

Create a Test Method

Add Test Method Inputs

Add Test Method Outputs

Clone Inputs & Outputs

Create Matching Outputs

Test Calculations

Preview Calculations

Manage Related Test Suites

Manage Related Stock Items

View Related Products

Publish a Test Method

Test Method Versions

Cloning Test Methods

Delete Test Methods

View Test Method Details in the Lifecycle


Create a Test Method

  1. Go to Setup > Test Methods and select Create Test Method.

  1. Enter a unique Name.
    1. LabHQ displays an error below the field if another test method already uses that name.
  2. Optionally enter a Description to help users identify the method.
  3. Optionally enter Workbook notes.
    1. These appear on the downloadable workbook and can include instructions or reminders for the person performing the test.
  4. Add at least one input and one output.
    1. At least one input must be available for electronic results entry.
  5. When you’re ready, select Create to save the method as a draft.

Add Test Method Inputs

  1. Under Inputs, select Create Input.
  2. Enter a Name.
    1. LabHQ uses it wherever the input appears, including Enter Results and the downloadable workbook.
  3. Select Units if applicable.
    1. Leave the field blank for an input without units, or choose the blank option at the top of the list to clear an existing selection.
    2. If a unit is missing, edit the Units system list under Setup > Lists.
  4. Choose a Field Type.
Field type Use it for
String Free-text results such as Complies     or Does not comply    .
Numeric Numbers, including measurements you want to use in a calculation.
List A predefined set of values the user can choose from. Assign the appropriate list to the input.
  1. Optionally enter a Default Value.
    1. LabHQ fills it in during result entry and users can change it.
    2. Defaults are useful for rarely changing information that you also report on the sample certificate.
  2. Choose where the input appears under Display On.
Setting Where the input appears
All In the LabHQ lifecycle and on the printed workbook. This is the default.
Electronic In the LabHQ lifecycle only.
Workbook On the downloadable workbook only. Use this for information recorded outside electronic results entry.
  1. Select Mandatory if users must complete the input during result entry. Clear it to make the input optional.
    1. The setting is available for All and Electronic inputs.
  2. Select OK.

Use only All or Electronic inputs in output calculations.


Add Test Method Outputs

  1. Under Outputs, select Create Output.
    1. To edit an existing output, select its name.
  2. Enter a Name that identifies the result on the sample certificate.
  3. Select Units if applicable.
  4. To set the number of decimal places, select Add rounding and enter a value in Decimals.
  5. Select Show on report if the output should appear on certificates.

  1. Define the result on the Calculation tab.
  2. Use Display format if the reported value needs different wording or formatting.
  3. Check the output on the Try it out tab, then select OK.
  4. Save the test method to keep your changes.

Build a Result Calculation

To copy a value directly to the output, select the named input.

To calculate a value, use the arithmetic buttons, Functions or Conditions, then fill the spaces with named inputs, numbers or text. Input identifiers such as $1     and $2     show which inputs the formula uses.

For example, to calculate Average Weight from three numeric inputs:

  1. Choose Functions > Mathematics > Average.
  2. Choose Weight 1 for the first value. Select the Average function, use Add input to add a value, and choose Weight 2 and Weight 3.
  3. Set Units to mg     and Decimals to 2    .
  4. Select Show on report if the average should appear on the certificate.

Select any part of the calculation, including a calculation inside another one, to replace or remove it. Use Undo and Redo to step through edits.

For a larger calculation, expand the editor, drag to move around the canvas, scroll to zoom or use Fit to canvas.

Switch to Code to view, enter or copy the formula. Edits carry across when you switch views.

Set Rounding

LabHQ evaluates numeric calculations to a default precision of 10 decimal places. To round an output further, open it, select Add rounding and enter a whole number from 0 to 10 in decimals. Leave rounding unset to use the raw result.

Numeric rounded and displayed results retain trailing zeros to the configured precision. For example, 1.2    appears as 1.200    when Decimals is set to 3   .

Set a Display Format

Display format controls how the result is presented. By default, it uses the Rounded result. In Code, $R refers to that value. You can also reference an input directly, for example when a reporting threshold should use the original measurement.

To display a reporting threshold:

  1. Open the output.
  2. Under Conditions, choose If / otherwise. Fill in the comparison under If, then choose what to show under When true and When false. Use + Text for wording such as <1    or Less than LOQ   .
  3. Use Try it out to check each option, including what happens at the threshold.

For example, a Weight display format can show <1    for values below 1, <100    for values from 1 up to but excluding 100, and the input value from 100 upwards. Put the second If / otherwise inside the first When false branch.

To base a display format on the calculated result, an Assay average output could use an average for Calculation and $R < 0.1 ? "Less than LOQ" : $R    for the Display format. A rounded result of 0.02    displays as Less than LOQ   . A rounded result of 1.5     displays as 1.5   .


Clone Inputs & Outputs

Cloning is useful when several inputs or outputs share the same settings.

  1. Open the row menu beside the input or output and select Clone.
  2. Enter a unique Name.
    1. The suggested name is the original name followed by Copy.
  3. Review the copied settings.
    1. For an input, these include units, field type and whether the field is mandatory.
    2. For an output, they include units, decimals and calculations.
    3. Adjust them as needed.
  4. Select OK.

Input names must be unique among the method’s inputs, and output names must be unique among its outputs.


Create Matching Outputs

Use a matching output when you want to report an input as entered. LabHQ copies the input’s name and units and sets the result calculation to its identifier, such as $2   . Matching outputs are shown on reports by default.

  • For a new input, select Create Matching Output in the input dialog, then select OK. The matching output appears in the Outputs table.
  • For an existing input, open its row menu and select Create Matching Output. Review the prefilled output, then select OK.

If you only need to report calculated results, clear Create Matching Output when adding an input and create the required outputs separately.

Matching outputs are available for inputs that support electronic results entry.


Test Calculations

  1. Open the output and select Try it out.
  2. Enter example values under Test values.
  3. Select Test calculation and check the values shown in Result.
Result What it shows
Raw result The calculated value before the output’s decimal setting is applied.
Rounded result The value after applying the output’s decimal setting, if configured.
Displayed result The value after applying Display format, if configured. Otherwise, it shows the rounded result.

If LabHQ shows an error, check the formula and test values.

Run Test calculation again after changing a value, formula or rounding setting so you can check the current result before publishing.


Preview Calculations

In the Calculation column, hover over Result or Display to open a read-only preview. These links are available in the test method’s edit and view screens and in the Output Summary of a lifecycle test.

On Edit Test Method, selecting Result or Display opens the corresponding tab for editing. To inspect the formula in a larger read-only view, use Expand calculation in the preview. The expanded viewer offers View and Code, zoom and fit controls, and the option to copy the formula. If you see Too large to preview, use the expanded viewer to inspect the calculation or read its code.


Manage Related Test Suites

In Edit Test Method, select Related Test Suites.

Selected Test Suites shows the suites the method already belongs to.

To assign the method to an existing suite, find it under Available Test Suites. Use the search box to narrow the list if needed. Select > to add the chosen suite or >> to add all suites in the current search results. With no search filter, >> adds all available suites.

Select OK to confirm the selection, then save the method.


Manage Related Stock Items

🔒 This is a premium feature.

You can associate stock items and typical quantities with a test method. LabHQ can use these quantities when recording stock consumption during testing.

  1. In Edit Test Method, select Related Stock Items.
    1. Selected Stock Items shows the items and quantities already associated with the method.
  2. To add an item, find it under Available Stock Items. Use the search box if needed.
  3. Select > to add the chosen item or >> to add all items in the current search results. With no search filter, >> adds all available items.
  4. Set the quantities for the selected items, select OK, then save the method.

View Related Products

Select View Related Products in Edit Test Method to see the products associated with the method and the test suites that link them. Select a product or test suite to open its edit screen in a new tab.

The list reflects any changes you make to the method’s test suite selection during the current edit, even before you save.

You can use it to identify product specifications that may need to be regenerated after a test method changes.


Publish a Test Method

Save the method as a draft if it still needs changes or review.

When it is ready for use, open the method’s details and select Publish New Version, then confirm.

Publishing makes the new version available for samples submitted from that point onwards.


Test Method Versions

LabHQ assigns a sample the published test method version available when the sample is submitted. While edits are in draft, newly submitted samples continue to use the latest published version.

After a new version is published, subsequent submissions use it.

Samples already in the lifecycle keep the version they were assigned at submission.


Cloning Test Methods

Use Clone to create a separate method with an existing method’s description, inputs and outputs.

  1. From Setup > Test Methods, open the row menu for the method and select Clone.
    1. You can also select Clone from the options menu on Edit Test Method.
  2. Enter a unique name and select OK. If the name is already in use, LabHQ displays Test method already exists.
  3. LabHQ saves the copy and opens it for editing.
  4. Assign any required test suites separately.
  5. Save any additional changes.
  6. Publish the cloned method when it’s ready for use.


Delete Test Methods

Deleting a test method removes it from its associated test suites and makes it unavailable for new sample submissions. It preserves data already in the lifecycle.

  1. In the Test Methods list, open the method’s row menu and select Delete.
    1. You can also select Delete from the options menu in Edit Test Method.
  2. Review the affected test suites on the Delete test method screen.
  3. Select Delete to confirm or Back to cancel.

View Test Method Details in the Lifecycle

Select a test method name in the lifecycle to open a read-only side panel. It shows the test method name, version number and description.

If you have the Manage Test Methods permission, select Edit Test Method in the side panel to open the setup screen and review or update the full method.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us