Answers for "simple api for testing"

2

dummy api json

var xhr = new XMLHttpRequest();
xhr.open("GET", "https://reqres.in/api/products/3", true);
xhr.onload = function(){
    console.log(xhr.responseText);
};
xhr.send();
Posted by: Guest on April-14-2020
0

API testing example

In my last project. I did API testing for an internal project 
employee info Old application exposed the restful api for easy 
integration with other apps so I tested the app functionality 
works in api layer. I have experience both in testing and 
automating in Postman and automating using RestAssured Library
Posted by: Guest on May-29-2021
0

API Testing

from locust import HttpUser, between, task


class WebsiteUser(HttpUser):
    wait_time = between(5, 15)
    
    def on_start(self):
        self.client.post("/login", {
            "username": "test_user",
            "password": ""
        })
    
    @task
    def index(self):
        self.client.get("/")
        self.client.get("/static/assets.js")
        
    @task
    def about(self):
        self.client.get("/about/")
Posted by: Guest on May-18-2021
2

dummy api json

var xhr = new XMLHttpRequest();
xhr.open("GET", "https://reqres.in/api/products/3", true);
xhr.onload = function(){
    console.log(xhr.responseText);
};
xhr.send();
Posted by: Guest on April-14-2020
0

API testing example

In my last project. I did API testing for an internal project 
employee info Old application exposed the restful api for easy 
integration with other apps so I tested the app functionality 
works in api layer. I have experience both in testing and 
automating in Postman and automating using RestAssured Library
Posted by: Guest on May-29-2021
0

API Testing

from locust import HttpUser, between, task


class WebsiteUser(HttpUser):
    wait_time = between(5, 15)
    
    def on_start(self):
        self.client.post("/login", {
            "username": "test_user",
            "password": ""
        })
    
    @task
    def index(self):
        self.client.get("/")
        self.client.get("/static/assets.js")
        
    @task
    def about(self):
        self.client.get("/about/")
Posted by: Guest on May-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language