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 8367783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:14:43+00:00 2026-06-09T13:14:43+00:00

I am testing html error codes for some RESTful and server side event services.

  • 0

I am testing html error codes for some RESTful and server side event services. We currently only have MOCK services, when I kill the services, or start/stop the service I am supposed to get the associated HTML error codes on the browser. The way I am thinking of testing this is using our existing test framework JAVA/testNG/Selenium Grid2/ + other stuff to programmatically kill and start these MOCK services and then do the necessary asserts to make sure all is well. We currently have shell scripts for these functions but not sure how to implement via Java code or hook into .sh script…

.sh script:

'#!/bin/bash
set -x

cd /mock_services/push
pkill -f mockserver || true'
  • 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-06-09T13:14:45+00:00Added an answer on June 9, 2026 at 1:14 pm

    You can execute shell commands through the use of a ProcessBuilder.

    Have a look at

    • Want to invoke a linux shell command from Java
    • ProcessBuilder
    • Using ProcessBuilder
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've installed Tomcat and I've been testing it: I wrote some .html and .jsp
I'm using the mock-0.6 library from http://www.voidspace.org.uk/python/mock/mock.html to mock out a framework for testing,
I have some code where I'm testing for a wrapped exception, when it failed
I am currently trying to set up WatiN to do some automated testing of
I have the following code to upload a file to the server. For some
I have a HTML page that contains a flash file and some a JavaScript
How can I display HTML text in textview? For example, string <h1>Krupal testing <span
I am a hobbyist webdesigner, use html and CSS for testing various website designs.
I'm testing some legacy code that extends the default php exception object. This code
I have a form, and I have some jquery code to override the submit

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.