Skip to content

USE CASE / DEVICES & TOOLS

ZennoPoster proxy workflows

Build repeatable browser-automation jobs with deliberate proxy scope, session state, and result validation. Keep a task’s route attached to its coherent browser session.

In this guide

WORKFLOW SNAPSHOT

  • Run a permitted test scenario against a site you control and compare its output with a direct baseline.
  • Suggested starting behavior: Timed session
  • Validate the real application and destination

A practical ZennoPoster workflow

Run a permitted test scenario against a site you control and compare its output with a direct baseline.

  • Record the project version, browser context, and expected result.
  • Set the proxy in the execution context that makes the requests.
  • Keep credentials in a secret store rather than embedded in shared project exports.

Where should a ZennoPoster scenario keep its session assignment?

Keep the route coherent through the full test scenario. Start a separate assignment between independent fixtures if needed. Record how a timed session interacts with the scenario length so an expiry does not create a hidden change halfway through the job.

Which ZennoPoster assertions must pass before adding threads?

Reusing a browser profile while changing routes can mix state and make results difficult to interpret. A completed automation run is not proof that requests used the intended exit.

Include an observed-exit check and a semantic assertion on the final page in the same job.

Verify the ZennoPoster connection boundary

Assert the expected page, required fields and completion state after each important step. A sign-in screen or incomplete document should stop that fixture rather than silently passing into later actions.

Preflight a ZennoPoster fixture through the assigned route

Retrieve the automation fixture independently and assert a known page marker before comparing it with the ZennoPoster project's own result.

  1. 01
    Generate your endpoint

    Choose HTTP / HTTPS and Sticky session for the complete workflow in Configure proxies.

  2. 02
    Set your proxy URL

    Set PS_PROXY_URL to http://USERNAME:PASSWORD@HOST:PORT using your generated endpoint. For IP authentication, whitelist your machine and use http://HOST:PORT. Percent-encode special characters in credentials; these are proxy credentials, separate from your account password or API key.

  3. 03
    Choose the destination

    Set PS_TARGET_URL before running the code. Use the read-only HTTPS fixture page on a site you control that the ZennoPoster project is meant to load; use a stable synthetic test marker.

    Example URL · replace placeholders with your targethttps://example.com/qa/zennoposter/fixture

    Set PS_EXPECT_TEXT to a stable fixture marker such as QA_FIXTURE_READY that your controlled page deliberately includes. This optional check inspects the returned text without running JavaScript.

ps_zennoposter.pyRetrieve the automation fixture independently and assert a known page marker before comparing it with the ZennoPoster project's own result.
Before you runPython 3.10+ · python -m pip install requests · python ps_zennoposter.py
# Retrieve the automation fixture independently and assert a known page marker before comparing it with the ZennoPoster project's own result.
# Set PS_TARGET_URL to the read-only HTTPS fixture page on a site you control that the ZennoPoster project is meant to load; use a stable synthetic test marker.
import hashlib
import json
import os
import time
from pathlib import Path
from urllib.parse import urlsplit

import requests

class InspectSession(requests.Session):
    # Leave redirect bodies streamed instead of preparing the next request.
    def resolve_redirects(self, *args, **kwargs):
        return iter(())

proxy = os.environ["PS_PROXY_URL"]  # HTTP endpoint from ProxySight
target = os.environ["PS_TARGET_URL"]  # https://example.com/qa/zennoposter/fixture
if urlsplit(proxy).scheme != "http":
    raise ValueError("Use your generated HTTP proxy endpoint for this example.")
if urlsplit(target).scheme not in ("http", "https"):
    raise ValueError("PS_TARGET_URL must be an HTTP or HTTPS URL.")

with InspectSession() as client:
    client.trust_env = False  # No ambient proxy, NO_PROXY or netrc overrides
    started = time.monotonic()
    with client.get(
        target,
        proxies={"http": proxy, "https": proxy},
        headers={"Accept-Language": "en-US,en;q=0.9"},
        timeout=(10, 20), allow_redirects=False, stream=True,
    ) as response:
        body = bytearray()
        for chunk in response.iter_content(16384):
            body.extend(chunk)
            if len(body) > 1048576:
                raise RuntimeError("Response exceeds this example's 1 MiB limit.")
        Path("zennoposter-fixture-preflight.html").write_bytes(body)
        print(json.dumps({
            "workflow": "zennoposter", "status": response.status_code,
            "elapsed_ms": round((time.monotonic() - started) * 1000),
            "bytes": len(body), "sha256": hashlib.sha256(body).hexdigest(),
            "headers": {name: response.headers.get(name) for name in ['Content-Type', 'Content-Language', 'Location']},
        }, indent=2))
        expected = os.getenv("PS_EXPECT_TEXT", "")
        if expected:
            text = body.decode(response.encoding or "utf-8", errors="replace")
            print("Expected text:", "found" if expected in text else "absent")
        # A 200 status alone does not prove the intended page was returned.
        # Inspect redirects, login prompts, 403 and 429 before another request.
Understand the result

Compare the fixture marker, status and saved bytes with the intended input page; a successful preflight does not apply proxy settings inside ZennoPoster or verify the final browser state, so repeat route and semantic assertions within the project's execution context.

Response bodies are limited to 1 MiB for a small diagnostic. TLS verification stays enabled; redirects are left for you to inspect. Connection guide

Example: attach route verification to the automation job

A useful browser-automation fixture has a known input and a semantic assertion on the final page. Add an exit observation inside the same execution context rather than checking the route in a separate desktop browser. Keep the project version, profile, and expected output together.

When a job reports completion, verify that it reached the intended state. A script can finish after loading the wrong page, so successful execution and successful task output should be recorded separately.

Illustrative observation record · replace with your test data
{
  "job": "AUTHORIZED_QA_FIXTURE",
  "project_version": "RECORD_VERSION",
  "profile": "TEST_PROFILE",
  "observed_exit": "RECORD_EXIT",
  "assertion_result": "RECORD_RESULT"
}

ZennoPoster verification checklist

For this ZennoPoster workflow, record execution context, route and result assertion alongside the actual result. Use the evidence below to decide whether another observation is comparable before increasing the workload.

CheckpointHold constant or recordExpected evidence
Execution contextProject version and browser profileThe intended job generated the request
RouteExit check within that contextObserved route attached to the run
Result assertionSpecific expected page stateA verified task result

Troubleshoot ZennoPoster results and connection errors

SymptomCheck nextWhat the result tells you
Job completes, output wrongInspect final document and assertionExecution success is not semantic success
Manual browser worksCompare the automation contextIts settings or stored state may differ
Repeated duplicate actionCheck whether the first action completedDo not retry mutations blindly

Re-run the same ZennoPoster fixture against a controlled destination

Run one permitted fixture with a direct baseline and one configured endpoint. Save template version, input, expected assertions and failure stage. Increase threads only after retry and timeout behavior is bounded and the controlled destination’s capacity is understood.

A LITTLE CLARITY

Common questions.

Should every automation step rotate its exit?

Only independent steps should be considered for separate assignments; related authenticated steps usually need continuity.

Where should route verification run?

Inside the same execution context and profile as the automation task, so the result applies to the actual job.

Which ZennoPoster assertions must pass before adding threads?

Assert the expected page, required fields and completion state after each important step. A sign-in screen or incomplete document should stop that fixture rather than silently passing into later actions.

PUT THE KNOWLEDGE TO WORK

Your workflow.
Your next connection.

Try the controls, choose your IP behavior, and start with one clear connection check.

Explore the configurator ↗