×
Clear all filters including search bar
Valeri Tandilashvili's Personal Professional Blog
Git
on the serversudo apt install git
Installs Nginx serversudo apt install nginx
Installs MySQL Serversudo apt install mysql-server
Installs php-fpm and php-mysqlsudo apt install php-fpm php-mysql
Installs additional necessary packages for PHPsudo apt install php-pdo php-common php-dom php-mbstring php-gd php-json php-soap php-xml php-cli php-ldap php-zip
sudo apt update
testdirectory
directory to the location that the console is pointing atsudo mkdir testdirectory
Collection Pre
Folder Pre
Request Pre
HERE GOES REQUEST
Collection Test
Folder Test
Request Test
Local
Data
Environment
Collection
Global
services_cron/asb/log
to create files and write logssudo chmod -R 757 /var/www/html/services_cron/asb/log
Content-Type
is equal to application/json; charset=utf-8
pm.test("Content-Type is application/json", function () {
pm.response.to.be.header("Content-Type", "application/json; charset=utf-8");
});
Content-Type
pm.test("Content-Type is application/json", function () {
pm.response.to.have.header("Content-Type");
});
status
exists in the response JSONpm.test('Has "status" property', function() {
var jsonData = pm.response.json();
pm.expect(jsonData).to.have.property('status');
});
The response JSON{
"status": {
"code": 400,
"text": "Mobile Number is required"
}
}
status code
is equal to 400
pm.test("Status code is 400", function () {
pm.response.to.have.status(400);
});