Forum Discussion

naveen8944's avatar
naveen8944
Contributor
9 years ago

unable to resolve class com.eviware.soapui.impl.wsdl.support.assertions

Newbie here..Need your valuable suggestions

 

 

I have a Groovy Script step in soapui 4.6.4

 

my first line of code is 

import com.eviware.soapui.impl.wsdl.support.assertions

 

 

and when I run the script I get the following 

 

 

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script2.groovy: 1: unable to resolve class com.eviware.soapui.impl.wsdl.support.assertions @ line 1, column 1. import com.eviware.soapui.impl.wsdl.support.assertions ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class com.eviware.soapui.impl.wsdl.support.assertions @ line 1, column 1. ...

 

 

 

Can some one please help with what I need to do?

  • Hi,

     

    Unless you made a typo, I think you need to either use the * wildcard to import the whole assertions package e.g.

     

    import com.eviware.soapui.impl.wsdl.support.assertions.*

    Or pick out a particular class to import from that package e.g.

     

     

    import com.eviware.soapui.impl.wsdl.support.assertions.AssertableConfig

    Make sense?

     

    Regards,

    Rup

  • rupert_anderson's avatar
    rupert_anderson
    Valued Contributor

    Hi,

     

    Unless you made a typo, I think you need to either use the * wildcard to import the whole assertions package e.g.

     

    import com.eviware.soapui.impl.wsdl.support.assertions.*

    Or pick out a particular class to import from that package e.g.

     

     

    import com.eviware.soapui.impl.wsdl.support.assertions.AssertableConfig

    Make sense?

     

    Regards,

    Rup

    • naveen8944's avatar
      naveen8944
      Contributor

      The actual class I'm trying to import is

       

      com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEntry

       

      From my script

       

      import com.eviware.soapui.config.AssertionEntryConfig
      import com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEntry
      import com.eviware.soapui.config.*

       

       

      and I still get 

       

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script19.groovy: 2: unable to resolve class com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEntry @ line 2, column 1. import com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEntry ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEntry @ line 2, column 1. at .....

       

      I copied the name from 

      https://www.soapui.org/apidocs/pro/com/eviware/soapui/impl/wsdl/teststeps/assertions/support/AssertionEntry.html