feature file is not running in karate framewrok in intellij - testing

I'm new in Karate framework.
And i have create one script which is read the request body from "user.json" file and i have configerd that in feature file. till that it's good but when run feature file, it's giving me an below error:
json file:
and i tried to found solution for this but didn't get much result for same.
can anyone please help me out for how to reslove this?

Related

Unable to access config file from mock file after upgrading to 1+ version of Karate

I'm using the driver.intercept feature of Karate to intercept a browser request and fetch values. In the mock feature similar to the one in here, I'm accessing the karate.config variables following a suggestion in Karate Server feature file cannot access variables in karate-config.js file
* call read('classpath:karate-config.js')
After upgrading to 1+ version of Karate, this stopped working. Could someone help if you have used anyother workaround as the options I tried didn't work.

Jenkins sent cucumber html report that is not looking good

The html file which i have received from jenkins is not looking as expected.
I have tried using Cucumber code below but it has not resolved my issue:
dref reportPath=build.getWorkspace().child("overview-failures.html")
msg.setContent(reportPath.readToString()."text/html")
**/cucumber-html-reports/overview-features.html
My expected result is that the html should look good.
please find the image

karate.log(args) on afterScenario hook is not embedded on surefire json file

I am doing karate.log(...args) on my hook file. It is printed on the karate.log and the console.
However I do not find the log on the .json file generated by surefire, which leads to the log does not appear on my html report.
Is there any steps I am missing here?
Thanks a lot!
Yes hooks don't log to the HTML report, sorry. Are you doing testing or just worrying about reports :)

Can't import PDF with mpdf

everyone.
I started using mpdf on my website recently. Creating new pdfs is working fine, but i can't import existing ones. I get this error whenever i try to execute the import:
mPDF error: Cannot open ../folder1/folder2/folder3/folder4/folder5/thisisthepdf.pdf !
(that is not the real path)
I included the mpdf in the php. The folder and the files are on chmod 777 and the pdfs are all version 1.4
This is the way i am trying to import.
$mpdf=new mPDF();
$mpdf->SetImportUse();
$pagecount = $mpdf->SetSourceFile('../folder1/folder2/folder3/folder4/folder5/thisisthepdf.pdf');
$tplId = $mpdf->ImportPage($pagecount);
$mpdf->UseTemplate($tplId);
$mpdf->WriteHTML('Hallo World');
$mpdf->Output();
I tried various ways to import i found on stackoverflow and other sites, but nothing worked. Not even the code from the official mpdf manual i am using (the one above) is working.
Trying to solve this issue for quite a while now, but i am out of ideas. I Hope someone can help me. Thanks in advance!
This error message is raised because of a failing call of a simple fopen(). Which means that the PHP script simply cannot access the file.
So ensure that the path is valid by e.g. passing it to realpath(), as it seems to be a relative path. If this evaluates to false the path is simply wrong. Otherwise it is a permission issue.

Can download but file will not unzip as expected

I'm attempting to access the Geometadb database which first involves download of the SQL library. I did that and then I got the Geometadb library.
library(GEOmetadb)
Next I need the Geometadb file which is where things start to go wrong. I issue this command as seen exactly in the tutorial: https://bioconductor.riken.jp/packages/3.0/bioc/vignettes/GEOmetadb/inst/doc/GEOmetadb.html
if(!file.exists('GEOmetadb.sqlite')) getSQLiteFile()
It should proceed to not only download a .gz zip file but also unzip the file. It downloads it but never unzips it. Instead I get the following error.
trying URL 'http://dl.dropbox.com/u/51653511/GEOmetadb.sqlite.gz'
Error in download.file(url_geo, destfile = localfile, mode = "wb") :
cannot open URL 'http://dl.dropbox.com/u/51653511/GEOmetadb.sqlite.gz'
In addition: Warning message:
In url(url_geo_2, open = "rb") :
cannot open: HTTP status was '403 Forbidden'
Just not sure what's going on here. Considering these are just the early tutorial steps I'm probably missing something really obvious but I'm hoping someone can help me out. Thanks!