Hi,
I am using Runscope for API automation. I discovered that Chai.js is an assertion library which can be used in the Scripts section of runscope to add extra assertions.
I just wanted to ask that using Chai.js can we perform database verification?
The situation is as below:
When a POST request is submitted, it is going to create some data (lets say field x having value abc)
Now after the above call, I just want to verify that abc value is inserted in database properly.
(I know we can use GET call after POST so that it will fetch data, but I want to test is explicitly from the database)
Can anybody give me some idea on it? Whether it is possible or not.
Thanks in advance!
-Kedar