Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1101391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:01:41+00:00 2026-05-17T01:01:41+00:00

All time am getting below error message in groovy… Could not understand whats causing

  • 0

All time am getting below error message in groovy…

Could not understand whats causing this ” Unexpected token error” ????

I used to think only PERL give bad compilation error,now groovy outperforming it..

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
D:\Playground\groovy\release-b-work\cmd_line_soapui\trial.groovy: 12: 
unexpected token: myrunner @ line 12, column 1.    
myrunner.setProjectFile("D:\soapui-release-B\try.xml");
      ^
  1 error

Code taken from comment;

import com.eviware.soapui.SoapUIProTestCaseRunner;
import com.eviware.soapui.support.*;
import com.eviware.soapui.model.*;
import com.eviware.soapui.impl.wsdl.*;
import com.eviware.soapui.*;
class trial {
  def myrunner = new com.eviware.soapui.SoapUIProTestCaseRunner();
  myrunner.setProjectFile("D:\soapui-release-B\try.xml");
  myrunner.setTestSuite("MediaAssetServiceTestSuite");
  myrunner.setTestCase("createMediaAsset TestCase");
  myrunner.run();
} 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:01:41+00:00Added an answer on May 17, 2026 at 1:01 am

    You need to put your code in a method

    You can’t just add code into a class at class level

    Try:

    import com.eviware.soapui.SoapUIProTestCaseRunner;
    import com.eviware.soapui.support.*;
    import com.eviware.soapui.model.*;
    import com.eviware.soapui.impl.wsdl.*;
    import com.eviware.soapui.*;
    
    class trial {
      def someMethod() {
        def myrunner = new com.eviware.soapui.SoapUIProTestCaseRunner();
        myrunner.setProjectFile("D:\soapui-release-B\try.xml");
        myrunner.setTestSuite("MediaAssetServiceTestSuite");
        myrunner.setTestCase("createMediaAsset TestCase");
        myrunner.run();
      }
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting this weird error message every time I'm testing my app on
this is my first post on this website, but I'm all the time getting
i'm having a hard time getting this to work, all I need to do
This doesn't happen all the time. A bug is not a bug if cannot
im getting the SIGABRT error each time i build. Im seeing the reason below:
Script below is not working. Not getting any php error messages. Had asked a
While running unit tests, I'm getting the MDA shown below. In the error message,
I'm getting Permission Denied all the time when I'm trying to fetch my location
I see this all the time: object literals declared such that some keys are
I've tried all the time calculating examples I found on this site but somehow

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.