Forum Discussion

shirishwagh's avatar
8 years ago

com.smartbear.cucumber.TestComplete.<init>(TestComplete.java:58)

Hi,

I followed the example for BDD and Test Complete automation. Notepad example present on the article works fine.

I tried using our TC project file and calling a test method but it keeps on giving below exception. Project gets opened in the TestComplete but it throws below exception on the Java side.

 

 

Waiting for TestComplete to be ready.
java.lang.Exception: Project QuantumUI-TestComplete not found.
    at com.smartbear.cucumber.TestComplete.<init>(TestComplete.java:58)
    at com.example.testingNotepad.World.TC(Steps.java:67)
    at com.example.testingNotepad.Steps.before(Steps.java:50)
    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 cucumber.runtime.Utils$1.call(Utils.java:37)
    at cucumber.runtime.Timeout.timeout(Timeout.java:13)
    at cucumber.runtime.Utils.invoke(Utils.java:31)
    at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:59)
    at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:222)
    at cucumber.runtime.Runtime.runHooks(Runtime.java:210)
    at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:200)
    at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
    at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:163)
    at cucumber.runtime.Runtime.run(Runtime.java:120)
    at cucumber.api.cli.Main.run(Main.java:36)

 

It seems to be throwing ComFailException var 8 inside TestComplete class,

try {
                this.RunConnected(LogName, ProjectName);
            } catch (ComFailException var8) {
                throw new Exception("Project " + ProjectName + " not found.");
            }

 

Can you please help to resolve this issue?

 

Thanks,

Shirish

 

1 Reply

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3

    Is your TestComplete project actually in the directory where Cucumber expects to find it?

     

    If so, are permissions set so that Cucumber has access to it?