- Install npm
sudo apt install npm
- Install Newman Runner globally
npm install -g newman
- Check postman scripts
#! /usr/local/bin/python3 | |
import csv, sqlite3 | |
class csv_2_sqlite: | |
def __init__(self, file_name, db_name, table_name): | |
self.file_name = file_name | |
self.db_name = db_name | |
self.table_name = table_name |
collection_Json="Reqres_MW.json" | |
env_Json="Reqres_Env.json" | |
report_name="Automate Postman Test Reporting" | |
# Install Newman-Runner and Run Postman Collection Locally | |
# install packages | |
npm install -g newman | |
npm install -g newman-reporter-htmlextra # need for only Way 3(run and generate html report) |
# @title Get URLs | |
import os | |
import sys | |
import wget | |
import pandas as pd | |
from bs4 import BeautifulSoup | |
def get_soup(url): | |
page = requests.get(url) |
FROM alpine | |
RUN apk add --update npm | |
RUN npm install -g newman http-server newman-reporter-htmlextra | |
COPY file/ run/ | |
WORKDIR run | |
RUN newman run Reqres_MW.json -e Reqres_Env.json -r htmlextra --reporter-htmlextra-title 'Reqres_report' --reporter-htmlextra-export "newman/index.html" | |
WORKDIR newman | |
EXPOSE 8080 | |
Entrypoint ["http-server"] |
#!/bin/bash | |
function run_cmd(){ | |
cmd="git clone https://"$1"@github.com/"$2"/"$3".git" | |
echo $cmd | |
eval $cmd | |
} | |
token="***" | |
owner=("user-A" "user-B") |
Download Jmeter
Environment Setup
// used version | |
// testImplementation 'io.rest-assured:rest-assured:4.3.1' | |
// implementation 'com.squareup.okhttp3:okhttp:3.14.6' | |
import io.restassured.path.xml.XmlPath; | |
import io.restassured.specification.RequestSpecification; | |
import okhttp3.MediaType; | |
import okhttp3.OkHttpClient; | |
import okhttp3.Request; | |
import okhttp3.RequestBody; |
The program reads three integer values from an input dialog. The three values represent the lengths of the sides of a triangle. The program displays a message that states whether the triangle is scalene, isosceles, or equilateral.
Remember that a scalene triangle is one where no two sides are equal,