How to Bulk Upload Test Cases for Coding Questions in Testlify

Bulk uploading test cases helps you quickly add multiple inputs and outputs for any coding question. This is especially useful when you're creating algorithm, data structure, or logic-based problems where several test scenarios are needed.

This guide walks you through the entire process, from selecting the coding question type to uploading your CSV file.

1. Open the Coding Question Setup

  1. Go to Assessments → select or create an assessment.
  2. Navigate to the Questions tab.
  3. Click Add Question → select Coding from the “Hands On” section.

You’ll now be taken to the coding question creation page.

2. Create or Select a Coding Question

On the coding question setup screen, you can either:

  • Choose a pre-built template (e.g., Rotate Array, Reverse String), or
  • Create your own custom question by entering the title and description.

You can also configure:

  • Coding type (Single file / Multi-file)
  • Languages allowed
  • Default language
  • Initial code template
  • Difficulty level & completion time

3. Find the Bulk Upload Option

Scroll down to the section titled Test cases for testing code.

You will see:

  • A Bulk upload link
  • A Test cases button to manually add cases one by one

Click Bulk upload.

4. Use the Bulk Upload Modal

A pop-up window will appear with the option:

Import test cases → Select CSV file

Below it, you’ll find a downloadable CSV template.

Click CSV template to download the required format.

5. Preparing Your CSV File

Your CSV must contain the following columns:

Column Description
Input The input the candidate's code will receive
Output The expected output after running the candidate's code
Visibility for candidates “Yes” = visible test case, “No” = hidden

Example CSV Structure

Visible test cases help candidates understand at least one example.

Hidden test cases ensure that candidates cannot hardcode answers.

6. Upload Your CSV

  1. Click Select CSV file
  2. Choose your prepared file
  3. Press Import

If the file is formatted correctly, all your test cases will instantly appear in the list.

7. Review Your Imported Test Cases

After import, your test cases will display as:

  • Visibility toggle (checked = visible)
  • Input
  • Expected Output
  • Edit/delete controls on the right

Each test case is now ready and will be used to validate candidate submissions.


8. Save the Question

Once your test cases look correct:

  1. Click Add to save the question
  2. Continue with your assessment setup

Your coding question is now fully configured with multiple test cases.

Tips for Best Results

  • Keep input/output formatting consistent with your coding problem statement.
  • Use hidden cases to prevent cheating.
  • Always test your cases manually before uploading.
  • Use clear, unambiguous inputs, especially for edge cases.

If you need further assistance or have any questions, please reach out to us at 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