TestProject Forum
Powered by leading experts in the test automation community

Error: Requested Addon is not installed: Addon was not found

Hi All,

I am trying to setup Java SDK with the example code at https://github.com/testproject-io/java-sdk-examples , but after running the test on local machine, the proxy test is failing as it is not able to install addon, I have placed the addon jar web-example-addon.proxy.jar in src/main/proxy.

23:32:02.756 [pool-2-thread-1] DEBUG io.testproject.java.sdk.v2.reporters.TestReporter - Navigated to TestProject Demo: Passed
23:32:03.325 [pool-2-thread-1] DEBUG io.testproject.java.sdk.v2.reporters.TestReporter - Logged in with John Smith:12345: Passed
23:32:06.583 [main] ERROR io.testproject.java.sdk.v2.Runner - Failed to execute codeblock class io.testproject.examples.sdk.tests.ProxyTest
java.util.concurrent.ExecutionException: java.lang.RuntimeException: Requested Addon is not installed: Addon was not found
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at io.testproject.java.sdk.v2.Runner.run(Runner.java:774)
at io.testproject.java.sdk.v2.Runner.run(Runner.java:635)
at io.testproject.tests.Tests.runProxyTest(Tests.java:46)
at io.testproject.tests.desktop.ChromeTests.runProxyTest(ChromeTests.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:515)
at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:115)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:171)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:167)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:114)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:59)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:105)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:95)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:71)
at java.util.ArrayList.forEach(ArrayList.java:1257)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:110)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:95)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:71)
at java.util.ArrayList.forEach(ArrayList.java:1257)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:110)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:95)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:71)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:220)
at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:188)
at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:142)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:117)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
Caused by: java.lang.RuntimeException: Requested Addon is not installed: Addon was not found
at io.testproject.java.sdk.v2.internal.AgentProxy.processRequest(AgentProxy.java:193)
at io.testproject.java.sdk.v2.internal.AgentProxy.executeAddonProxy(AgentProxy.java:102)
at io.testproject.java.sdk.v2.tests.helpers.TestHelperEx.executeProxy(TestHelperEx.java:68)
at io.testproject.examples.sdk.tests.ProxyTest.execute(ProxyTest.java:62)
at io.testproject.java.sdk.v2.Runner.execute(Runner.java:433)
at io.testproject.java.sdk.v2.Runner.lambda$run$0(Runner.java:738)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
23:32:06.587 [main] INFO io.testproject.java.sdk.v2.reporters.Reporter - Reporting result: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Requested Addon is not installed: Addon was not found
Caused by java.lang.RuntimeException: Requested Addon is not installed: Addon was not found

Hello @mayankverma.

Did you head over to the addons section and install this particular addon before writing the coded test?

You’ll need to have any addon you’d like to use the proxy of installed on your account before using it in a coded test.

Yes, actually I copied the code from github and was trying to generate addon and include it in the test, but now I am good, I got the issue resolved. Thanks for your time! :slight_smile: