Skip to content

Quick Start Test API Using Postman

double77 edited this page Sep 20, 2023 · 6 revisions

This page aims to guide you in creating your first test using Idelium.

There will be three steps to follow:

  1. Login to Idelium AS
  2. Create a step
  3. Create a test
  4. Create a test cycle
  5. Launch the test with idelium-cli
  6. Check the test result

Login to Idelium AS

To access Idelium AS, you need to use the following credentials:

Username: demo@idelium.io

Password: demo

Import the demo Postman test

Introduction

This file was created using the demo of postman client called "Postman Echo".

You can download the file directly from the following link:

https://github.com/idelium/idelium-api/blob/main/testfile/postman/Postman%20Echo.postman_collection.json

Create a test

Here is the translation of your text into English:

"Go to the 'step' section, click on 'new step,' enter the name of the step, and click on 'add step.' Then, choose 'step type' as 'postman' and 'postman collection' from the dropdown menu. Drag the Postman file into the 'upload' section and click 'add.'

Image

Create a Test

Go to the 'test' section, click on 'new test,' and drag the 'step' to the right. Enter the mandatory name and description, and click 'create.'

Image"

Create a test cycle

Navigate to the side menu and select "test cycles." Drag the "Idelium Test" into the "Selected Test" box. Fill in the required fields above and click on "create."

Now you are ready to launch the test.

Launch the test with idelium-cli

Prerequisites

Install idelium-cli (https://github.com/idelium/idelium-cli) on your PC.

Make sure a version of Chrome is installed on your PC.

Downloading the API key from Idelium AS

To enable idelium-cli to communicate with Idelium AS, you need to download the API key. On the side menu, click on "API Key" and download the file. Rename it to ".idelium" and place it under your user's home directory.

Run the command

`idelium --idCycle=1 --idProject=1 --environment=demo --ideliumwsBaseurl=https://localhost ``

Once it's finished, you are ready for the next step and can return to Idelium AS.

Test results

To see the test results, go to the side menu and click on "Test Performed." There, you will find the name of the test cycle. Click on it to view the list of launched tests. By clicking on a test, you can see the outcome:

  • Green - Test completed successfully.
  • Red - Test failed.
  • White - Test in progress.

At this point, the following popup will appear and click on "Postman Collection Details":

And then you arrived to the results of all call of this step:

Clone this wiki locally