Skip to main content

Test Designer Integration

Service Suite can integrate with a test designer for basic functionalities.


forward (call→ HttpRequest, String → hostname, int hostport) → Http Response

Will proxy this call through a DS3 Server, Similar to proxy. Only works for DS3, Even if DS3 is injecting JS for testing, this call will not get modified.


startForward (String → hostname, int hostport)

Will create a new forward environment, please remember to stop forward and the end with stopForward. Only one forward session at a time. If this method is called without the forward session being closed, it will throw an exception.

This only affects calls using the forward(call). Standard process or HTTP calls are not affected.


forward (call→ HttpRequest) → Http Response

Call that will be called using the forward specs in startForward. Will throw exception if there is not forward session started.


stopForward()

Stops a forward session. Will throw exception if there is not forward session started.


startTestDesignerProxy (String host, int port) → Int

Starts a Test Designer proxy session will return the proxy socket port. This port will not inject JS.


startTestDesignerProxy (String host, int port,int desiredPort) → Boolean

Starts a Test Designer proxy session in the desired port and will return the proxy socket port. This port will not inject JS.


startTestDesignerProxyRercording(String host, int port,int desiredPort) → Boolean

Make proxy session in desired port to start recording. Could be download with consumeTestDesignerProxyHAR. To stop the recording use stopTestDesignerProxyRercording. Returns true if the session exists and now recording.


stopTestDesignerProxyRercording(String host, int port,int desiredPort) → Boolean

Stops recording in proxy session for desired port. Could be download with consumeTestDesignerProxyHAR. To restart the recording use startTestDesignerProxyRercording. Returns true if the session exists and now not recording.


consumeTestDesignerProxyHAR(String host, int port,int desiredPort) →JSONArray

Consumes the recording session in the HAR proxy. To enable recording in a session use startTestDesignerProxyRercording. To stop the recording use stopTestDesignerProxyRercording.


stopTestDesignerProxy(String host, int port,int desiredPort)

Stops a Test Designer proxy session.


Last updated: June 02, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai