Evosuite eclipse plugin error while generating the testcases

358 views
Skip to first unread message

goutham reddy

unread,
Nov 7, 2016, 4:00:22 PM11/7/16
to EvoSuite

I tried generating Junit test cases using Evosuite eclipse plugin even though it failed with below error, I am generating test cases for a small even or odd program. I tried to figure out the issue but could not able to.

Rakesh Sharma

unread,
Nov 17, 2016, 11:13:52 AM11/17/16
to EvoSuite
Hi Gautham,

Any progress on this issue. Because i am also facing same issue.

Gordon Fraser

unread,
Nov 18, 2016, 4:15:44 AM11/18/16
to Rakesh Sharma, EvoSuite
Hi,

Can you show me the log output of Eclipse? There presumably is some error message/exception by EvoSuite. I am not sure how exactly to get that output from Eclipse on Windows; usually one has to launch Eclipse with the -consoleLog option, or else this is in one of the .log files in the workspace.

Thanks,
Gordon


--
You received this message because you are subscribed to the Google Groups "EvoSuite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to evosuite+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/evosuite/b8c41665-aac3-4a80-9970-298ae71e4f63%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Rakesh Sharma

unread,
Nov 21, 2016, 1:29:52 AM11/21/16
to Gordon Fraser, EvoSuite
Hi Gordon,

         Happy To see your reply. I really appreciate. 
I am trying to generate the test case for the Android using Evosuites. Is it possible to do that?
I have cross-checked the list of dependencies downloaded by Evosuites and as per the list, it downloads dependencies for Spring, Hibernate , jboss but not anything related for Android.

Thanks in Advance.

Regards,
Rakesh

Gordon Fraser

unread,
Nov 21, 2016, 7:37:12 AM11/21/16
to Rakesh Sharma, EvoSuite
Hi Rakesh,

We haven’t looked into testing Android.

In principle, EvoSuite will be able to generate tests for the Android code as long as you provide a valid class path that contains a) the JVM bytecode version of your code, and b) the JVM bytecode version dependency libraries. Setting up the right classpath with all dependencies is something you need to do, EvoSuite will not do that automatically for you.

As far as I can tell, an issue will be that the JVM versions of the Android libraries only provide dummy implementations of the Android API, and so you might not get very useful tests. Maybe something like Robolectric (http://robolectric.org) could help - I haven’t tried.

There might be other problems once the dependencies are set up - would be interesting to hear how this goes.

Best wishes,
Gordon


> On 21 Nov 2016, at 06:29, Rakesh Sharma <rakesh.s...@gmail.com> wrote:
>
> Hi Gordon,
>
> Happy To see your reply. I really appreciate.
> I am trying to generate the test case for the Android using Evosuites. Is it possible to do that?
> I have cross-checked the list of dependencies downloaded by Evosuites and as per the list, it downloads dependencies for Spring, Hibernate , jboss but not anything related for Android.
>
> Thanks in Advance.
>
> Regards,
> Rakesh
>
>
> On Fri, Nov 18, 2016 at 2:45 PM, Gordon Fraser <gordon...@sheffield.ac.uk> wrote:
> Hi,
>
> Can you show me the log output of Eclipse? There presumably is some error message/exception by EvoSuite. I am not sure how exactly to get that output from Eclipse on Windows; usually one has to launch Eclipse with the -consoleLog option, or else this is in one of the .log files in the workspace.
>
> Thanks,
> Gordon
>
>
> On 17 November 2016 at 16:13, Rakesh Sharma <rakesh.s...@gmail.com> wrote:
> Hi Gautham,
>
> Any progress on this issue. Because i am also facing same issue.
>
> On Tuesday, 8 November 2016 02:30:22 UTC+5:30, goutham reddy wrote:
>
>
> I tried generating Junit test cases using Evosuite eclipse plugin even though it failed with below error, I am generating test cases for a small even or odd program. I tried to figure out the issue but could not able to.
>
>
> --
> You received this message because you are subscribed to the Google Groups "EvoSuite" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to evosuite+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages