text
exists in the response JSONpm.test("status text key exists", function () {
var jsonData = pm.response.json();
pm.expect(jsonData.status.text !== undefined).to.eql(true);
});
The response JSON{
"status": {
"code": 400,
"text": "Mobile Number is required"
}
}
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"
}
}
<?php
$yes = array('this', 'is', 'an array');
echo is_array($yes) ? 'Array' : 'not an Array';
echo "\n";
$no = 'this is a string';
echo is_array($no) ? 'Array' : 'not an Array';
?>
<?php
$people = array("Peter", "Joe", "Glenn", "Cleveland");
if (in_array("Glenn", $people))
{
echo "Match found";
}
else
{
echo "Match not found";
}
?>
services_cron/asb/log
to create files and write logssudo chmod -R 757 /var/www/html/services_cron/asb/log
FirstName=Mickey&LastName=Mouse
$( "form" ).on( "submit", function( event ) {
event.preventDefault();
console.log( $( this ).serialize() );
});