Setting up an HTTP-Server/en

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen

Introduction[Bearbeiten]

You can use an HTTPServer inside expecco for various reasons:

  • to generate JSON/XML/Text or other responses to a tested web application
  • to provide status information to users
  • to trigger actions inside a test-scenario from an outside browser
  • many other possible applications

Using Standard Actions from the Standard Library[Bearbeiten]

HTTP Server Actions

The standard library provides HTTP server actions in the "Networking & Interfacing" / "HTTP" / "Server" folder.

  • create a new action (named "Setup & Configure HTTPServer").
  • add the "HTTP [StartServer]" action

if you have to serve plain (unprocessed) files, for example for icons, images or other constant documents, then:

  • add one or more "HTTP [Add File Service]" actions.

finally,

  • add one or more "HTTP [Service]" actions.

these will be activated whenever a corresponding request is received by the server. They will get the request information as input and are expected to generate a response. The response will be returned to the HTTP server via the



Copyright © 2014-2024 eXept Software AG