I have installed the "Sequence" add-on from the marketplace and then have created a sequence script with two urls.
If i try to run the script with the "Run" button, it fails, I get the following messages in the "Zest Results" console :
"FAILED Assert" - Status Code expected 200 got 502.
It seems that it tries to run the script with an outgoing proxy but none is configured in the options.
2016-06-01 15:21:41,354 [ZAP-ScriptExecutor-TestSequence2] DEBUG ExtensionScript - invokeScript TestSequence2
2016-06-01 15:21:41,355 [ZAP-ScriptExecutor-TestSequence2] DEBUG ZestZapRunner - Constructor
2016-06-01 15:21:41,356 [ZAP-ScriptExecutor-TestSequence2] DEBUG ZestZapRunner - Run script TestSequence2
2016-06-01 15:21:41,356 [ZAP-ScriptExecutor-TestSequence2] DEBUG ZestZapRunner - Run script TestSequence2
2016-06-01 15:21:41,356 [ZAP-ScriptExecutor-TestSequence2] DEBUG ZestZapRunner - setVariable
zap.script.name = TestSequence2
2016-06-01 15:21:41,391 [ZAP-ScriptExecutor-TestSequence2] DEBUG ZestZapRunner - runStatement ZestRequest
2016-06-01 15:21:41,408 [ZAP-ScriptExecutor-TestSequence2] DEBUG HttpConnection - Open connection to localhost:8080
2016-06-01 15:21:41,409 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - >> "CONNECT
wwwd-i.caf.fr:443 HTTP/1.1"
2016-06-01 15:21:41,409 [ZAP-ScriptExecutor-TestSequence2] DEBUG HttpMethodBase - Adding Host request header
2016-06-01 15:21:41,409 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
2016-06-01 15:21:41,410 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - >> "Host:
wwwd-i.caf.fr[\r][\n]"
2016-06-01 15:21:41,410 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - >> "Proxy-Connection: Keep-Alive[\r][\n]"
2016-06-01 15:21:41,410 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - >> "[\r][\n]"
2016-06-01 15:21:41,414 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - << "HTTP/1.1 200 Connection established[\r][\n]"
2016-06-01 15:21:41,414 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - << "Proxy-connection: Keep-alive[\r][\n]"
2016-06-01 15:21:41,414 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - << "[\r][\n]"
2016-06-01 15:21:41,414 [ZAP-ScriptExecutor-TestSequence2] INFO HttpMethodBase - Response content length is not known
2016-06-01 15:21:41,414 [ZAP-ScriptExecutor-TestSequence2] DEBUG HttpMethodBase - Force-close connection: true
2016-06-01 15:21:41,414 [ZAP-ScriptExecutor-TestSequence2] DEBUG ConnectMethod - CONNECT status code 200
2016-06-01 15:21:41,414 [ZAP-ScriptExecutor-TestSequence2] DEBUG HttpConnection - Secure tunnel to
wwwd-i.caf.fr:4432016-06-01 15:21:41,432 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - >> "GET /msp/TestEcran1.jsp HTTP/1.1[\r][\n]"
2016-06-01 15:21:41,432 [ZAP-ScriptExecutor-TestSequence2] DEBUG HttpMethodBase - Adding Host request header
2016-06-01 15:21:41,432 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
2016-06-01 15:21:41,432 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - >> "Host:
wwwd-i.caf.fr[\r][\n]"
2016-06-01 15:21:41,432 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - >> "[\r][\n]"
2016-06-01 15:21:41,432 [ZAP-ProxyThread-1032] DEBUG SiteMap - findChild msp / GET:TestEcran1.jsp
2016-06-01 15:21:41,432 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.socket.timeout = 20000
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.connection.stalecheck = true
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.connection-manager.max-per-host = {HostConfiguration[]=10000}
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.connection-manager.max-total = 200000
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.socket.timeout = 20000
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.connection.stalecheck = true
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.connection-manager.max-per-host = {HostConfiguration[]=10000}
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.connection-manager.max-total = 200000
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.protocol.single-cookie-header = true
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.protocol.single-cookie-header = true
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.protocol.cookie-policy = ignoreCookies
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.protocol.cookie-policy = ignoreCookies
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG HttpSessionsSite - Matching session for request message (for site
wwwd-i.caf.fr:443): HttpSession [name=Session 1, active=false, tokenValues='']
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG HttpSessionsSite - No active session is selected.
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.0
2016-06-01 15:21:41,433 [ZAP-ProxyThread-1032] DEBUG DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.1
2016-06-01 15:21:41,434 [ZAP-ProxyThread-1032] DEBUG MultiThreadedHttpConnectionManager - HttpConnectionManager.getConnection: config = HostConfiguration[host=
https://wwwd-i.caf.fr], timeout = 0
2016-06-01 15:21:41,434 [ZAP-ProxyThread-1032] DEBUG MultiThreadedHttpConnectionManager - Allocating new connection, hostConfig=HostConfiguration[host=
https://wwwd-i.caf.fr]
2016-06-01 15:21:41,434 [ZAP-ProxyThread-1032] DEBUG HttpConnection - Open connection to
wwwd-i.caf.fr:4432016-06-01 15:21:41,645 [ZAP-ProxyThread-1032] DEBUG header - >> "GET /msp/TestEcran1.jsp HTTP/1.1[\r][\n]"
2016-06-01 15:21:41,645 [ZAP-ProxyThread-1032] DEBUG HttpMethodBase - Adding Host request header
2016-06-01 15:21:41,645 [ZAP-ProxyThread-1032] DEBUG header - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
2016-06-01 15:21:41,645 [ZAP-ProxyThread-1032] DEBUG header - >> "Host:
wwwd-i.caf.fr[\r][\n]"
2016-06-01 15:21:41,645 [ZAP-ProxyThread-1032] DEBUG header - >> "[\r][\n]"
2016-06-01 15:21:41,649 [ZAP-ProxyThread-1032] DEBUG HttpMethodDirector - Closing the connection.
2016-06-01 15:21:41,649 [ZAP-ProxyThread-1032] DEBUG HttpMethodDirector - Method retry handler returned false. Automatic recovery will not be attempted
2016-06-01 15:21:41,649 [ZAP-ProxyThread-1032] DEBUG HttpConnection - Releasing connection back to connection manager.
2016-06-01 15:21:41,649 [ZAP-ProxyThread-1032] DEBUG MultiThreadedHttpConnectionManager - Freeing connection, hostConfig=HostConfiguration[host=
https://wwwd-i.caf.fr]
2016-06-01 15:21:41,649 [ZAP-ProxyThread-1032] DEBUG IdleConnectionHandler - Adding connection at: 1464787301649
2016-06-01 15:21:41,649 [ZAP-ProxyThread-1032] DEBUG MultiThreadedHttpConnectionManager - Notifying no-one, there are no waiting threads
2016-06-01 15:21:41,649 [ZAP-ProxyThread-1032] DEBUG HttpSessionsSite - Matching cached session for response message (from site
wwwd-i.caf.fr:443): HttpSession [name=Session 1, active=false, tokenValues='']
2016-06-01 15:21:41,650 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - << "HTTP/1.1 502 Bad Gateway[\r][\n]"
2016-06-01 15:21:41,650 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - << "Content-Length: 2088[\r][\n]"
2016-06-01 15:21:41,650 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - << "Content-Type: text/plain; charset=UTF-8[\r][\n]"
2016-06-01 15:21:41,650 [ZAP-ScriptExecutor-TestSequence2] DEBUG header - << "[\r][\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG HttpMethodBase - Buffering response body
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "ZAP Error [java.net.SocketException]: Connection reset[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "Stack Trace:[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "java.net.SocketException: Connection reset[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at java.net.SocketInputStream.read(Unknown Source)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at java.net.SocketInputStream.read(Unknown Source)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at sun.security.ssl.InputRecord.readFully(Unknown Source)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at sun.security.ssl.InputRecord.read(Unknown Source)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at sun.security.ssl.AppInputStream.read(Unknown Source)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at java.io.BufferedInputStream.fill(Unknown Source)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at java.io.BufferedInputStream.read(Unknown Source)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)[\n]"
2016-06-01 15:21:41,651 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.zaproxy.zap.ZapGetMethod.readResponse(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.apache.commons.httpclient.HttpMethodBase.execute(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.parosproxy.paros.network.HttpSender.executeMethod(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.parosproxy.paros.network.HttpSender.runMethod(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.parosproxy.paros.network.HttpSender.send(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.parosproxy.paros.network.HttpSender.sendAuthenticated(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.parosproxy.paros.network.HttpSender.sendAndReceive(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.parosproxy.paros.network.HttpSender.sendAndReceive(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.parosproxy.paros.core.proxy.ProxyThread.processHttp(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at org.parosproxy.paros.core.proxy.ProxyThread.run(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG content - << "[0x9]at java.lang.Thread.run(Unknown Source)[\n]"
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG HttpMethodBase - Resorting to protocol version default close connection policy
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG HttpMethodBase - Should NOT close connection, using HTTP/1.1
2016-06-01 15:21:41,652 [ZAP-ScriptExecutor-TestSequence2] DEBUG HttpConnection - Releasing connection back to connection manager.
2016-06-01 15:21:41,658 [ZAP-ScriptExecutor-TestSequence2] DEBUG ZestZapRunner - setVariable request.header = User-Agent: Jakarta Commons-HttpClient/3.1