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

  • Home
  • SEARCH
  • 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 628353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:37:41+00:00 2026-05-13T19:37:41+00:00

So, I have a GWT client, which interacts with a Python Google App Engine

  • 0

So, I have a GWT client, which interacts with a Python Google App Engine server. The client makes request to server resources, the server responds in JSON. It is simple, no RPC or anything like that. I am using Eclipse to develop my GWT code.

I have GWTTestCase test that I would like to run. Unfortunately, I have no idea how to actually get the google app engine server running per test. I had the bright idea below of trying to start the app engine server from the command line, but of course this does not work, as Process and ProcessBuilder are not classes that the GWT Dev kit actually contains.

package com.google.gwt.sample.quizzer.client;

import java.io.IOException;
import java.lang.ProcessBuilder;
import java.lang.Process;

import com.google.gwt.junit.client.GWTTestCase;

public class QuizzerTest extends GWTTestCase {

  public String getModuleName() {
    return "com.google.gwt.sample.quizzer.Quizzer";
  }

  public void gwtSetUp(){
    ProcessBuilder pb = new ProcessBuilder("dev_appserver.py", 
                       "--clear_datastore",
                       "--port=9000",
                       "server_python");
    try {
      p = pb.start();
    } catch (IOException e) {
      System.out.println("Something happened when starting the app server!");
  }

  public void gwtTearDown(){ p.destroy(); }

  public void testSimple() {
    //NOTE: do some actual network testing from the GWT client to GAE here 
    assertTrue(true);}
}

I get the following errors when compiling this file:

[ERROR] Line 21: No source code is available for type java.lang.Process; did you forget to inherit a required module?
[ERROR] Line 30: No source code is available for type java.lang.ProcessBuilder; did you forget to inherit a required module?

As you can see below, I basically want it to be the case that per test it:

  1. Starts a datastore-empty instance of my GAE server
  2. runs the test across the network, against this server instance.
  3. Stop the server
  4. Of course, report the result of the test back to me.

Does anyone have a good way of doing this? Partial solutions are welcome! Hacks are fine as well. Maybe some progress on this problem could be made by editing the “.launch” config file? The only important criteria is that I would like to “unit test” portions of my GWT code against my actual GAE Python server.

Thank you.

  • 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-13T19:37:41+00:00Added an answer on May 13, 2026 at 7:37 pm

    I would recommend creating an Ant target for this – take a look at this page for the full ant build file for GWT.

    Then, as the first line of the testing target, add an execution task to start the server. Look here for exec docs.

    Then set up that ant task in your IDE. This way you get the server running before your tests irrespective of where you run the tests from, and it can be integrated into your build process if you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 415k
  • Answers 415k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer SELECT friend_id=? FROM yourtable WHERE (friend_id=? OR client_id=?); You will… May 15, 2026 at 9:06 am
  • Editorial Team
    Editorial Team added an answer One thing to question is who has created these requirements?… May 15, 2026 at 9:06 am
  • Editorial Team
    Editorial Team added an answer go to Run > Debug Configurations/Run Configurations Tab Target >… May 15, 2026 at 9:06 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.