|
| 1 | +--- |
| 2 | +title: "How to Update an Excel File in Testsigma Uploads?" |
| 3 | +metadesc: "When Excel files are modified during test execution, updates are stored locally. Learn how to upload the updated file back to Testsigma correctly." |
| 4 | +order: 24.41 |
| 5 | +page_id: "how-to-update-an-excel-file-in-testsigma-uploads-?" |
| 6 | +warning: false |
| 7 | +contextual_links: |
| 8 | +- type: section |
| 9 | + name: "Contents" |
| 10 | +- type: link |
| 11 | + name: "Prerequisites" |
| 12 | + url: "#prerequisites" |
| 13 | +- type: link |
| 14 | + name: "Install the Addons" |
| 15 | + url: "#install-the-addons" |
| 16 | +- type: link |
| 17 | + name: "Steps to Resolve the Issue" |
| 18 | + url: "#steps-to-resolve-the-issue" |
| 19 | +--- |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +When you modify an Excel file during a test run, the changes are stored locally on the test machine. To make sure these updates are reflected inside Testsigma, you must upload the modified file back using the appropriate addons. This article discusses the steps required to update and re-upload the Excel file correctly. |
| 24 | + |
| 25 | +--- |
| 26 | + |
| 27 | +> ## **Prerequisites** |
| 28 | +> |
| 29 | +> Before you begin, ensure that you have an excel file that has been uploaded to Testsigma. |
| 30 | +
|
| 31 | +--- |
| 32 | + |
| 33 | +## **Install the Addons** |
| 34 | + |
| 35 | +1. From the left navigation bar, click **Addons**. |
| 36 | +  |
| 37 | + |
| 38 | +2. Under the **New & Updated Addons** section, search for the **Upload Latest file to Testsigma Uploads** addon and click **Install**. |
| 39 | +  |
| 40 | + |
| 41 | +3. Under the **New & Updated Addons** section, search for the **ExcelActions_cloud** addon and click **Install**. |
| 42 | +  |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +## **Steps to Resolve the Issue** |
| 47 | + |
| 48 | +1. In your test case, first use the **Wait the data datavalue into the Excelfile excel-path with Cell value rowNo, columnNo, sheet-index and store the path in runtime variable variable-name (supports upload section)** NLP to enter the value that you want to add to the excel file. |
| 49 | +  |
| 50 | + |
| 51 | + - Enter the value you want to write into the **datavalue** placeholder. |
| 52 | + - Click the **excel-path** placeholder and replace it by selecting **Upload** from the **Test Data Types** dropdown. |
| 53 | + - In the **Uploads** overlay, choose the Excel file you want to update. |
| 54 | + - Specify the row number in the **rowNo** placeholder.  |
| 55 | + - Specify the column number in the **columnNo** placeholder.  |
| 56 | + - Specify the sheet number in the **sheet-index** placeholder.  |
| 57 | + - Enter a variable name in the **variable-name** placeholder.  |
| 58 | + - Click **Create Step**.  |
| 59 | + |
| 60 | +2. Secondly, use the **Upload file with path on testigma uploads with projectid, applicationid, uploadname, url with API key api_key** NLP to push the updated file back to your project. |
| 61 | +  |
| 62 | + |
| 63 | + - Click the **absolutepath** placeholder and replace it by selecting **Runtime** from the **Test Data Types** dropdown. |
| 64 | + - In the **Runtime Variable** overlay, select the runtime variable you created in the previous step.  |
| 65 | + - Click the **projectid** placeholder and enter your project id.  |
| 66 | + [[info | **NOTE**:]] |
| 67 | + | To get **project id** and **application id** use the following steps: |
| 68 | + | 1. Before you begin, open the inspect panel and refresh the page. Now, right-click on the application name and select **Inspect**. |
| 69 | + | 2. Go to the **Network** tab and refresh the page.  |
| 70 | + | 3. Click applications query.  |
| 71 | + | 4. Here you can find your **projectId** and **applicationId** under the **Preview** tab.  |
| 72 | + - Click the **applicationid** placeholder and enter your application id.  |
| 73 | + - Click the **uploadname** placeholder and enter your excel file’s name.  |
| 74 | + [[info | **NOTE**:]] |
| 75 | + | To get **uploadname** and **upload id**, go to **Uploads** and hover over the excel file you want to update.  |
| 76 | + - Enter the following URL **[https://app.testsigma.com/api/v1/uploads/{ID}](https://app.testsigma.com/api/v1/uploads/{ID})** and replace <ID> with the upload ID copied from the **Uploads** page. For example, **[https://app.testsigma.com/api/v1/uploads/8](https://app.testsigma.com/api/v1/uploads/8)**  |
| 77 | + - Enter the api key in the **testdata** placeholder.  |
| 78 | + [[info | **NOTE**:]] |
| 79 | + | Please refer to the [documentation on generating api keys](https://testsigma.com/docs/configuration/api-keys/). |
| 80 | + - Click **Create Step**.  |
| 81 | + |
| 82 | +After you execute it, here's how it looks: |
| 83 | + |
| 84 | + |
| 85 | +--- |
0 commit comments