I'm getting familiar with JavaScript testing, and may be missing a point or two related to mocking api calls. Every tutorial I have found mocks api calls when doing unit or integration testing - example: https://jestjs.io/docs/en/tutorial-async...
I'm trying to test for the presence of some api response properties that I want to require across all tests (a status and data property).  Here's a generic test that asserts the desired properties in a supertest expect() method:      it('...
I have a device store project that allows to add/delete/edit devices and I'm trying to test in postman that after a POST ,that adds a device to the list ,the device can be found in my response body.I'm using Postman BDD and the Chai sintax...
I'm trying to a test that requires an authentication token login using frisby, the problem is: the response of my request is a string and not a JSON and i still havent figured out how to get it working.  I've read a few examples that i found...
I am using chakram to test API and whenever I am using a .then in a before(), I always get an error when testing the "it". I am not sure what I am doing wrong but I expect it has something to do with my returns.   describe('create group&#...
I have an API with a JSON Array of objects response like this  [    {      person_id:"12212",      person_name:"some name",      deptt : "dept-1"    },    {       person_id: "12211",      person_name: "some name 2&...
I want to add a payload schema to an environment variable so that I can validate the response payload against the schema.  I have my environment variable defined as follows:  responseSchema:  { "properties":       "firstname":...
I am currently trying to test my node api w/ mocha chai. I am running into a scenario where a test should actually fail but is passing. I have a repo up of the current API that I am building here if you want to play around with it: enter link descrip...
I'm currently testing a couple of microservices using Cypress. To test the REST api's, I need a token to make the requests. This token is available only via a local FE - image given below    I have to access this FE to fetch the token only -...
I'm creating a API test framework and using faker to create fake users to post to the API.   I'm testing two endpoints, create user and create reminder, I POST data to both of these.   To create a user I need to post a name, email and passwor...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.