# Uploading test cases as zip file

- **Author**: Edwin Babu
- **Category**: Assessments
- **URL**: https://help.neetorunner.com/articles/uploading-test-cases-as-zip-file
- **Page title**: Uploading test cases as zip file
- **Keywords**: zip file

---

NeetoRunner provides the user with the ability to add all test cases for a particular question as a zip file. This is useful, particularly when we need to add large test cases.

### Structure of zip file

1.in —\> Input for test case 1.

1.out —\> Output for test case 1.

The user has to follow this pattern to upload the zip file.

```
folder.zip
  - 1.in
  - 1.out
  - 2.in
  - 2.out
```

## Compressing the test case files

Once the test case files are created you have to select the files and then compress them:

[![image](https://neetorunnerhelp.neetokb.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsxWldSaE5EaG1OUzFpWm1FMUxUUmhNV1l0T0RZNU5DMWpaVGt4TWpFM09URmlaV1VHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--c1fe08f44fbc50e00a495bacc2b0916af37f8335/Screenshot%202022-10-19%20at%208.19.19%20AM.png)](https://neetorunnerhelp.neetokb.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWsxWldSaE5EaG1OUzFpWm1FMUxUUmhNV1l0T0RZNU5DMWpaVGt4TWpFM09URmlaV1VHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--c1fe08f44fbc50e00a495bacc2b0916af37f8335/Screenshot%202022-10-19%20at%208.19.19%20AM.png)
_Compressing test case files_

Once the zip folder is created upload that folder.

Compressing the folder in which test case files were created won't work.

[![image](https://neetorunnerhelp.neetokb.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxqWlRRME4yWm1OaTAwT1RsbUxUUTJNVGt0WVRFMFppMWtNek14TjJWak9HSTFPR1VHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--903d357255884c4a68a6021d91b718e2fac89638/Screenshot%202022-10-19%20at%2011.41.30%20AM.png)](https://neetorunnerhelp.neetokb.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxqWlRRME4yWm1OaTAwT1RsbUxUUTJNVGt0WVRFMFppMWtNek14TjJWak9HSTFPR1VHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--903d357255884c4a68a6021d91b718e2fac89638/Screenshot%202022-10-19%20at%2011.41.30%20AM.png)

Folders that are compressed as shown in the above image cannot be uploaded.

# Sample

## Problem Statement

Write a program to print multiplication table of number n provided as input.

## Test Case Files

- **1.in** -
  ```
  2
  ```
- **1.out** -
  ```
  2
  4
  6
  8
  10
  12
  14
  16
  18
  20
  ```

- **2.in** -
  ```
  3
  ```

- **2.out** -
  ```
  3
  6
  9
  12
  15
  18
  21
  24
  27
  30
  ```

Here is a sample of the zip file: