EvoMaster icon indicating copy to clipboard operation
EvoMaster copied to clipboard

Details how to use evomaster + info on found faults

Open bungdanar opened this issue 2 years ago • 8 comments

Hi, I'm currently trying evomaster to do blackbox testing on a RESTful API written in the NodeJs and Python programming languages. I'm using evomaster via windows installer.

I've tried running evomaster for 15 minutes and managed to generate tests. After the tests have been generated, should I run the tests? And how do I install dependencies to be able to run the tests?

bungdanar avatar May 17 '23 04:05 bungdanar

hi. by default, tests are generated in Java for JUnit. If you using NodeJS, can try the experimental option --outputFormat=JS_JEST

arcuri82 avatar May 19 '23 07:05 arcuri82

Hi, thank you so much for the answer. I was finally able to run the JUnit tests after installing the required dependencies although it was quite difficult as I don't have much experience in the Java ecosystem.

I actually will use evomaster for my thesis paper. How do we know how many bugs the evomaster has found? For example, if there are 2 tests in the EvoMaster_faults_Test.java file, does that mean that evomaster has found 2 bugs?

bungdanar avatar May 19 '23 07:05 bungdanar

hi. on the console, you get the info Potential faults: .... But, indeed, we should provide better information in the generated EvoMaster_faults_Test files

arcuri82 avatar May 19 '23 07:05 arcuri82

you can also use --writeStatistics=true, and check the potentialFaults column there in the generated CSV file

arcuri82 avatar May 19 '23 07:05 arcuri82

There is no information about Potential Faults in the console output. Maybe I missed a certain option parameter.

em-consolo-output

But the information about Potential Faults exists in the statistics.csv file

em-statistic-output

Anyway, thank you very much for the response.

bungdanar avatar May 19 '23 09:05 bungdanar

it is a bug, as it looks like we print it only for White-Box testing, but not for Black-box

arcuri82 avatar May 19 '23 10:05 arcuri82

--writeStatistics=true

if a api need auth token,how add token to testcases

wanglewang avatar Oct 17 '23 12:10 wanglewang

@wanglewang I have the same problem. Can did You fix it?

alegonzalezz avatar Nov 05 '23 14:11 alegonzalezz

closed as now found faults are explicitly added as comments in the generated tests

arcuri82 avatar Oct 28 '24 13:10 arcuri82