-
Continue reading →: Postman : Using Variables
Like every tool, Postman had 5 level of scope for defining variables 1. Global2. Collection3. Environment4. Local5. Data The name itself is self explanatory. Postman is a container of Collections(These collections contain set of requests) which can be executed against various environments(local, dev, qa etc..) and the scope representation of…
-
Continue reading →: Postman: How to write assertion for specific object property value in an array of object in…
We might face a scenario where our response has json object having value — array of objects like below. “filters”: [{“id”: 101,“name”: “VENDOR”,“isAllowed”: false},{“id”: 102,“name”: “COUNTRY”,“isAllowed”: true},{“id”: 103,“name”: “MANUFACTURER”,“isAllowed”: false}] We can get the value in multiple ways, but effective and easiest one is by using array filter > this filters for…
-
Continue reading →: Playwright : How to set custom download Path and Assert on file download
In playwright we can launch browser in two ways:1. Just import the Page from @playwright/test lib2. Create your own browser instance and pass the download path(Other launch options too) By default Playwright creates a temp folder and downloads the files to that folder and deletes after execution. If one needs…
-
Continue reading →: Postman : How to read request data and how to send randomised content in request body ?
Postman uses faker library and supports to generate random data. Imagine we have a POST API and it runs again and again. In this case without randomising, one need to update manually and rerun. So to avoid that we can use faker template within {{}} like {{$timestamp}} This gives the…
-
Continue reading →: How to perform Debugging in Visual Regression Tests
Debugging plays a vital role in the testing process. Any failed test needs to be diligently analyzed to identify the root cause of failure and work to rectify it. Automation frameworks like Selenium, Cypress, Puppeteer and Playwright are best suited and widely used for Functional testing . What if you need…
-
Continue reading →: Cypress : Few ways to select Calendar Date
Every application will have some date picker, it could be just an input field where you can directly enter date in defined format or pick the date from calendar. In this article we will see few ways to select the date from the Calendar. Below is the simple date field,…
-
Continue reading →: Cypress: Reading test data based on Environment
In any project it is obvious that there are more than one environment. Typically like local, QA, Staging, Production. The test data usually differs across these environments based on the configuration of such environments. Hence, When we develop our Cypress tests, we need to develop in flexible way such that…
-
Continue reading →: Cypress: How to select all checkboxes only if they are enabled
There are cases where we need to select items in the List which are enabled, from the list of disabled and enabled. Let us consider below HTML structure In this example we have three checkbox items and one is disabled. Now we need the cypress test to select only the…
-
Continue reading →: Cypress: How to intercept a GraphQL request for a specific operation
In react application using GraphQl is common and in order to ensure tests are stable, it’s better to wait for all these requests to complete before performing next operation. Cypress provides intercept function to intercept a particular request based on it’s method and url but doesn’t provide a way to…
