How Test Cases Work in Excel and Google Sheets Questions

Test cases tell Testlify what to check in a candidate’s spreadsheet. Each test case checks a cell, a range or a sheet. You can score the question as a whole, or give each test case its own score.

Before you start

  • You need a Microsoft Excel or Google Sheets question. To create one, see How to create a Microsoft Excel question.
  • Google Sheets questions use a link to your template, entered in Google spreadsheet file. Excel questions use an uploaded .xlsx file.

Test case types

Cell

Enter an Identifier such as Sheet1!H2 and the Expected value, for example 340.

Range

Enter an Identifier such as Sheet1!H2:H7.

Sheet

Enter the sheet name, such as Sheet1, and choose whether it should be Available: Yes or No.

Formatting

For cells and ranges, you can also require a Formatting option: Highlight, Wrap, Bold or Border. All input is treated as text. Press Enter in a field for multi-line input.

Add a test case

  1. In the question form, click Test cases.
  2. Choose Cell, Range or Sheet.
  3. Fill in the Identifier and the other fields for that type.
  4. If you score by test case, set the Correct score and Negative score.
  5. Click Add test case.

Add test case window in a Google Sheets question with Test case level scoring: Cell, Range and Sheet options, Identifier, Expected value, Formatting, Correct score and Negative score

Score each test case separately

  1. In the question form, click Show options.
  2. Set Scoring level to Test case level.
  3. When you add each test case, set its Correct score and Negative score.

With Question level scoring, you set one Maximum score for the whole question instead.

What happens next

When a candidate submits the question, their file is checked against your test cases and scored using the scoring level you chose.

Troubleshooting

I can’t see Correct score and Negative score on a test case

Set Scoring level to Test case level under Show options.

Still need help?

Contact support@testlify.com.

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