Publishing, Deploying, and Testing
Building a workflow is not the end of it. To be useful it has to go live, and you need to know it actually works once it is there. NxAgent covers that last stretch — deploying, checking where something is running, and testing it.
| Step | What it does |
|---|---|
| Deploy | Publishes the workflow and puts it live in an environment |
| Check status | Tells you where it is deployed, which versions, and its live address |
| Test | Runs the live workflow with sample data and reports what came back |
| Run saved tests | Re-runs your saved test cases as a regression check |
The order that works
- Build the workflow.
- Accept it, so the change is saved.
- Deploy to Development, somewhere safe to find problems.
- Test it, because deployment proves it is running, not that it is right.
- Save a test case, turning today's check into tomorrow's regression test.
- Deploy to Production, with evidence rather than hope.
Deployed is not the same as working. A successful deployment tells you the workflow is running. Only a test tells you it does what you meant.
Deploy a workflow
A workflow must be saved before it can be deployed. If you have just built or edited one, accept it first — deployment works from what is saved, not from what is on screen.
Deploy the OrderProcessing workflow to Development.
You are asked to confirm, showing the workflow and the environment. Nothing deploys until you agree.
Development is the default if you do not name an environment. Production is treated as high-risk and confirmed more carefully, because it is the one that affects real users.
Once deployed, you get the workflow's live address: the URL it can now be called on. That is what you hand to whoever needs to call it, and what testing uses.
Check where something is deployed
You do not need to deploy to find out about a deployment.
Where is this workflow deployed?
Which version is live in Production?
You get the environments it is deployed to, the versions, and the live address. This is read-only, so asking about a deployment never causes one.
Test a deployed workflow
Test the OrderProcessing workflow.
Test it with an order for 3 items totalling 45.00.
NxAgent finds the live address from the deployment, calls it, and reports what came back, including the error and status code if it fails.
If the workflow needs input, you are asked for realistic sample values rather than having something invented for you.
Testing calls the live workflow, so it has to be deployed first. If it is not, NxAgent offers to deploy it.
Save a test for reuse
Test it with this order and save it as a test case called StandardOrder.
That turns a one-off check into something you can re-run whenever you change the workflow.
Run saved test cases
Saved test cases are a real regression check. They compare the response against the expected result you saved, not merely that the call succeeded.
What test cases exist for this workflow?
Run the StandardOrder test case.
You get pass or fail, with what was expected and what actually came back for anything that failed. If a test case has several example variants, you are asked which to run.
Saved tests can be run from chat for HTTP and SOAP workflows only, not for queue or webhook workflows.
Working practices
| Practice | Why it helps |
|---|---|
| Check status rather than redeploying | Asking where something is deployed is read-only and instant |
| Use realistic sample data | Round-number test data hides the problems real data finds |
| Save test cases as you go | Builds a regression suite without setting time aside for it |
| Re-run saved tests after changes | The fastest way to catch something you broke |
| Inspect changes before deploying | See exactly what is going live |
| Keep Production deliberate | The extra care is the point |
How you know it worked
Deployment returns the environment, the version, and the live address. A test returns the actual response, and a saved test case returns pass or fail against the expected result.
Next steps
- Reviewing Changes Before They Ship — see what a deployment would include.
- Testing a Workflow — the full testing reference.