Not able to write tests with free DF plugin

Hi team,

I’m trying to write test cases for my project using the Intellij Plugin but getting the below error. I want to use the free community edition for personal purposes. This is an urgent requirement so please provide a solution for the same at the earliest.

IntelliJ IDEA 2022.2 (Community Edition)
Runtime version: 17.0.3+7-b469.32 amd64
Non-Bundled Plugins:
com.diffblue.intellij.cover.plugin (2022.08.03-2022.2)

Hello,

Have you attempted to activate the plugin as per the error message instructions?

To activate you must have an internet connection and network traffic must not be blocked by a firewall. If you are using a proxy server this must be configured in the IntelliJ settings.

Thanks

Matt @ Diffblue

Hi Matt,

Yes I tried with my system connected to the internet and with all permissions granted. Can you provide me the procedure to activate the Community Version Plugin (Free version)

Thanks.

Hello,

As per the instructions in the error message, click “Diffblue” in the top menu and then click “Activate License”.

In the dialogue box you can select activate Community Edition.

Kind Regards

Matt @ Diffblue

When I’m trying to follow the mentioned process, the above dialog box is popped up which doesn’t have an option to select the Community Edition and also it isn’t scrollable.

Thanks for responding!

Hello,

Thank you for the screenshot - IntelliJ is incorrectly rendering the dialogue box. To resolve this please adjust the IntelliJ custom font setting.

Please select:

File >
Settings >
Appearance & Behaviour >
Appearance >
Unselect “Use custom font:” >
And close settings

This will make the font smaller which will show the remainder of the fields in the ‘Diffblue’ > ‘Activate License’ dialogue box.

Kind Regards

Matt

1 Like

Thanks a lot. That helped!

Excellent! I am sorry you faced this issue and I am glad we could help

Please let us know if you have any further questions or comments, we are always happy to help

Thanks

Matt @ Diffblue

1 Like

Hi @Matt I am also facing this same issue But when I am clicking on Use Community Edition it is showing Licensing server SSL certificate error

Hi @Suraj_Kumar

Thank you for reaching out - if you are attempting to activate Diffblue Cover on a work machine you are likely facing this issue due to a corporate proxy.

The following guide on troubleshoot online activation, is very useful in these cases and provides information on how to get round this error.

Namely I would recommend checking you have access to the following links:

And that your proxy settings are correct using the following documentation - Online license activation

After confirming these, try to activate the license again to check if there is further improvement. Please let me know how this goes, and ask further questions if you have them.

Kind regards,

Jane @ Diffblue

Hi @Matt ,

I am facing below issue while using the community edition can you please help to check

Diffblue Cover Community Edition requires an active internet connection with access to https://licensing.diffblue.com, and https://api.licensespring.com to authorize use of the plugin. We cannot access one or more of these servers. This may be due to lack of an internet connection, or a firewall, or there are some other security mechanisms blocking this connection. See Online license activation | Diffblue Docs for more detailed information on troubleshooting this issue. Otherwise please contact https://www.diffblue.com/support/

But i can able to acces the above links,getting below

Welcome to the LicenseSpring API v4.0.5

please advice

Hi @konapallisuresh

Thank you for posting - I would recommend following the network troubleshooting steps to solve this issue.
If you have completed the steps and are still facing a problem please upload the support log file, and we can investigate the cause.

Kind regards,
Jane @ Diffblue

@Jane_Walls Thanks for quick response

Still facing the same isssue,I am facing issue while attaching th log that why i am adding the log here could you please help to check

10:54:16.608 [WARN] [Checking][sentry-pool-37-thread-1][c.d.i.p.t.r.f] Sending report failed
10:54:16.629 [WARN] [Messaging][AWT-EventQueue-0][c.d.i.plugin.g.a] Activation required - You have not activated your license yet.

Click Diffblue and Activate License in the menu bar to activate your
license.

If you haven’t got a license key then go to
https://www.diffblue.com/pricing/ and purchase a license.

com.diffblue.cover.exception.BaseException: Product is not licensed
at com.diffblue.cover.q.b.c.c(SourceFile:244)
at com.diffblue.cover.q.b.g.c(SourceFile:48)
at com.diffblue.intellij.plugin.license.d.c(SourceFile:88)
at com.diffblue.intellij.plugin.writetests.d.run(SourceFile:615)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:429)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$6(CoreProgressManager.java:480)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:252)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:252)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:833)
11:19:27.372 [INFO] [Licensing][ApplicationImpl pooled thread 28][c.d.cover.q.b.b] C:\Users\1611973.diffblue has permissions dir,read,write,exec
11:19:27.763 [INFO] [Licensing][ApplicationImpl pooled thread 28][c.d.cover.q.b.b] cannot resolve api.licensespring.com
11:19:27.765 [INFO] [Licensing][ApplicationImpl pooled thread 28][c.d.cover.q.b.b] cannot open connection caused by api.licensespring.com
11:19:28.017 [INFO] [Licensing][ApplicationImpl pooled thread 28][c.d.cover.q.b.b] cannot resolve licensing.diffblue.com
11:19:28.018 [INFO] [Licensing][ApplicationImpl pooled thread 28][c.d.cover.q.b.b] cannot open connection caused by licensing.diffblue.com
11:19:28.018 [INFO] [Licensing][ApplicationImpl pooled thread 28][c.d.cover.q.b.b] * Sending client request on thread ApplicationImpl pooled thread 28
11:19:28.019 [INFO] [Licensing][ApplicationImpl pooled thread 28][c.d.cover.q.b.b] → url: https://licensing.diffblue.com/getCommunityKey?hardwareId=7DFA-6C9D-F8D3-5C27-DE8F-B1D2-3E26-15A6-7D79-9717-88E2-9DF7-F93F-9137-EBC6-B477
← response headers
← response headers complete
11:19:28.420 [WARN] [Licensing][sentry-pool-2-thread-1][c.d.i.p.t.r.f] Sending report failed
11:19:28.440 [WARN] [Messaging][AWT-EventQueue-0][c.d.i.plugin.g.a] Failed to activate Community Edition - Diffblue Cover Community Edition requires an active internet connection with
access to https://licensing.diffblue.com,
and https://api.licensespring.com
to authorize use of the plugin.


We cannot access one or more of these servers. This may be due to lack of an
internet connection, or a firewall, or there are some other security mechanisms
blocking this connection.


See https://docs.diffblue.com/knowledge-base/troubleshooting/network-connections/ for more detailed information on troubleshooting this issue.
Otherwise please contact https://www.diffblue.com/support/.

Thanks for sending - I am having a look for you now.
Can you tell me what version of Cover you have installed?
(this information can be found on the plugin page)

@Jane_Walls
Below version i have instaled
VERSION 2023.07.02

@Jane_Walls full name of the file which is i dowload from web is
diffblue-cover-ij-2023.07.02-2022.3

could you please help on this issue ,it will be very help full for us

@konapallisuresh
It perhaps looks like your IntelliJ is behind some sort of firewall or proxy. Are you running on a proxy?
If so, have you tried turning off your SSL certificate?