STAMP-project / EvoCrash-demo

See https://stamp-project.github.io/botsing/ for the latest version of STAMP crash reproduction tool.
https://stamp-project.github.io/botsing/
Apache License 2.0
1 stars 2 forks source link

Can't generate test cases for class: null #16

Open fermenreq opened 6 years ago

fermenreq commented 6 years ago

Characteristics

Description

I can't generate tests cases for the component before comment. I modified config.properties as README said but it doesnt work.

Steps to reproduce

root@VTSS031:/home/fernando.mendez/EvoCrash-demo/Demo# ./gradlew run

Other files and URLs

Components : fiware cygnus-common

Output

root@VTSS031:/home/fernando.mendez/EvoCrash-demo/Demo# ./gradlew run
:compileJava UP-TO-DATE
:processResources
:classes
:run
logPath: /var/log/cygnus/cygnus.log
logsPaths: /var/log/cygnus/cygnus.log
src/GGA-tests/java/
Commands used without dependencies and class: [-generateTests, -Dcriterion=CRASH, -Dsandbox=TRUE, -Dtest_dir=src/GGA-tests/java, -Drandom_tests=0, -Dp_functional_mocking=0.8, -Dfunctional_mocking_percent=0.5, -Dminimize=TRUE, -Dheadless_chicken_test=FALSE, -Dpopulation=80, -Dsearch_budget=600, -Dglobal_timeout=3600, -Dtarget_frame=3, -Dvirtual_fs=TRUE, -Duse_separate_classloader=FALSE, -Dreplace_calls=FALSE, -Dmax_recursion=50, -Dreset_static_fields=FALSE, -Dvirtual_net=FALSE, -Dtarget_exception_crash=java.lang.ClassCastException, -DEXP=/var/log/cygnus/cygnus.log]
12:32:30.817 [main] INFO  evo_logger - * The target class is:null
* EvoCrash
* Going to generate test cases for class: null
* Unknown class: null. Be sure its full qualifying name  is correct and the classpath is properly set with '-projectCP'

BUILD SUCCESSFUL

Total time: 40.167 secs

config.properties file

root@VTSS031:/home/fernando.mendez/EvoCrash-demo/Demo/src/resources# cat config.properties
criterion=CRASH
sandbox=TRUE
test.random=0
functional.mocking.p=0.8
functional.mocking.percent=0.5
minimize=TRUE
headless.chicken.test=FALSE
population=80
search.budget=600
condition.stopping=
timeout.global=3600
frame.level=3
virtual.fs=TRUE
class.loader.separate=FALSE
calls.replace=FALSE
recursion.max=50
jar.tools.location=
fields.static.reset=FALSE
net.virtual=FALSE
exception.type=java.lang.ClassCastException
#the working directory is Demo/
path.test=src/GGA-tests/java/
path.log=/var/log/cygnus/cygnus.log
path.libs=/home/fernando.mendez/fiware-cygnus/cygnus-common/target/

Empty path.log=/var/log/cygnus/cygnus.log file. I think Evocrash looks for the class that contain the error following the trace error log.

Help on issue template

Preview to follow the link or open file .github/ISSUE_DOC.md