Test routing, written as tests
Each example on this page varies one setting in a short procedure, shown as prose, detected tests, inline tests, and a standalone spec. For what each tab holds, see Navigation and interaction.
Detection finds no steps in these procedures, because the URLs and commands sit in code. So every variant runs the same step statements, and the detected and inline files differ only in detectSteps.
An onFail or onWarning entry on a test that passes never applies. Those examples show the shape, and their effect says what happens when the entry applies.
Test routing permutations
onPass, continue
Varies: test.onPass · Value: [{"continue": true}] · Effect: the next test runs. This is the default after a pass.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-continue"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-continue-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-continue-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-continue-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-continue-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-continue-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-continue"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-continue-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-continue-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-continue-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-continue-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-continue-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-continue"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onpass-continue-api","onPass": [{"continue": true}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onpass-continue-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onpass-continue-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onpass-continue-apionPass:- continue: truesteps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onpass-continue-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onpass-continue-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onPass, stop: test
Varies: test.onPass · Value: [{"stop": "test"}] · Effect: does nothing, because the test already finished. The next test runs.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-stop-test"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-stop-test"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-stop-test"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onpass-stop-test-api","onPass": [{"stop": "test"}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onpass-stop-test-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onpass-stop-test-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onpass-stop-test-apionPass:- stop: teststeps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onpass-stop-test-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onpass-stop-test-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onPass, stop: spec
Varies: test.onPass · Value: [{"stop": "spec"}] · Effect: skips the spec’s remaining tests after this one passes. The first test runs on macOS and Linux only, so on Windows the stop never applies and the other tests run.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-stop-spec"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-stop-spec"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-stop-spec"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onpass-stop-spec-api","onPass": [{"stop": "spec"}],"runOn": [{"platforms": ["mac","linux"]}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onpass-stop-spec-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onpass-stop-spec-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onpass-stop-spec-apionPass:- stop: specrunOn:- platforms:- mac- linuxsteps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onpass-stop-spec-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onpass-stop-spec-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onPass, goToTest
Varies: test.onPass · Value: [{"goToTest": "data-route-test-onpass-gototest-products"}] · Effect: jumps to the products test, so the cart test doesn’t run and isn’t in the results.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-gototest"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-gototest"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onpass-gototest"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onpass-gototest-api","onPass": [{"goToTest": "data-route-test-onpass-gototest-products"}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onpass-gototest-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onpass-gototest-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onpass-gototest-apionPass:- goToTest: data-route-test-onpass-gototest-productssteps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onpass-gototest-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onpass-gototest-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onFail, continue
Varies: test.onFail · Value: [{"continue": true}] · Effect: applies only if the test fails, and runs the next test. Here the test passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-continue"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-continue-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-continue-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-continue-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-continue-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-continue-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-continue"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-continue-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-continue-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-continue-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-continue-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-continue-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-continue"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onfail-continue-api","onFail": [{"continue": true}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onfail-continue-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onfail-continue-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onfail-continue-apionFail:- continue: truesteps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onfail-continue-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onfail-continue-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onFail, stop: test
Varies: test.onFail · Value: [{"stop": "test"}] · Effect: applies only if the test fails, and does nothing more: the next test still runs. That’s the default. Here the test passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-stop-test"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-stop-test"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-stop-test"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onfail-stop-test-api","onFail": [{"stop": "test"}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onfail-stop-test-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onfail-stop-test-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onfail-stop-test-apionFail:- stop: teststeps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onfail-stop-test-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onfail-stop-test-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onFail, stop: spec
Varies: test.onFail · Value: [{"stop": "spec"}] · Effect: applies only if the test fails, and skips the spec’s remaining tests. Here the test passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-stop-spec"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-stop-spec"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-stop-spec"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onfail-stop-spec-api","onFail": [{"stop": "spec"}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onfail-stop-spec-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onfail-stop-spec-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onfail-stop-spec-apionFail:- stop: specsteps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onfail-stop-spec-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onfail-stop-spec-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onFail, goToTest
Varies: test.onFail · Value: [{"goToTest": "data-route-test-onfail-gototest-products"}] · Effect: applies only if the test fails, and jumps to the products test. Here the test passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-gototest"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-gototest"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onfail-gototest"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onfail-gototest-api","onFail": [{"goToTest": "data-route-test-onfail-gototest-products"}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onfail-gototest-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onfail-gototest-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onfail-gototest-apionFail:- goToTest: data-route-test-onfail-gototest-productssteps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onfail-gototest-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onfail-gototest-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onWarning, continue
Varies: test.onWarning · Value: [{"continue": true}] · Effect: applies only if the test ends with a warning, and runs the next test. Here the test passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-continue"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-continue"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-continue"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onwarning-continue-api","onWarning": [{"continue": true}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onwarning-continue-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onwarning-continue-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onwarning-continue-apionWarning:- continue: truesteps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onwarning-continue-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onwarning-continue-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onWarning, stop: test
Varies: test.onWarning · Value: [{"stop": "test"}] · Effect: applies only if the test ends with a warning, and does nothing more. Here the test passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-stop-test"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-stop-test"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-stop-test"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onwarning-stop-test-api","onWarning": [{"stop": "test"}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onwarning-stop-test-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onwarning-stop-test-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onwarning-stop-test-apionWarning:- stop: teststeps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onwarning-stop-test-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onwarning-stop-test-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onWarning, stop: spec
Varies: test.onWarning · Value: [{"stop": "spec"}] · Effect: applies only if the test ends with a warning, and skips the spec’s remaining tests. Here the test passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-stop-spec"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-stop-spec"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-stop-spec"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onwarning-stop-spec-api","onWarning": [{"stop": "spec"}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onwarning-stop-spec-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onwarning-stop-spec-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onwarning-stop-spec-apionWarning:- stop: specsteps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onwarning-stop-spec-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onwarning-stop-spec-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onWarning, goToTest
Varies: test.onWarning · Value: [{"goToTest": "data-route-test-onwarning-gototest-products"}] · Effect: applies only if the test ends with a warning, and jumps to the products test. Here the test passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Check the API, then the shop## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Check the API, then the shop== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Check the API, then the shop============================Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``.Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-gototest"><title>Check the API, then the shop</title><body><section><title>Check the API</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-gototest"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the API, then the shop<!-- test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false} -->## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Check the API, then the shop{/* test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false} */}## Check the API1. Send a `GET` request to `http://localhost:8092/api/health`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Check the API, then the shop// (test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false})== Check the API. Send a `+GET+` request to `+http://localhost:8092/api/health+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the API, then the shop</title></head><body><h1>Check the API, then the shop</h1><!-- test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false} --><h2>Check the API</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Check the API, then the shop============================.. test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false}Check the API-------------#. Send a ``GET`` request to ``http://localhost:8092/api/health``... step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onwarning-gototest"><title>Check the API, then the shop</title><body><section><title>Check the API</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onwarning-gototest-api","onWarning": [{"goToTest": "data-route-test-onwarning-gototest-products"}],"steps": [{"httpRequest": {"url": "http://localhost:8092/api/health","method": "get"}}]},{"testId": "data-route-test-onwarning-gototest-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onwarning-gototest-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onwarning-gototest-apionWarning:- goToTest: data-route-test-onwarning-gototest-productssteps:- httpRequest:url: http://localhost:8092/api/healthmethod: get- testId: data-route-test-onwarning-gototest-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onwarning-gototest-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onSkip, continue
Varies: test.onSkip · Value: [{"continue": true}] · Effect: on macOS and Linux the Windows test is skipped, and the next test runs. This is the default. On Windows every test runs.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Find Node.js, then check the API## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Find Node.js, then check the API== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre></li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Find Node.js, then check the API================================Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere nodeCheck the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-continue"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock></li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API<!-- test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true} -->## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```<!-- step {"runShell":"where node"} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-continue-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Find Node.js, then check the API{/* test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true} */}## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```{/* step {"runShell":"where node"} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-continue-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Find Node.js, then check the API// (test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true})== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----+// (step {"runShell":"where node"})// (test end)// (test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onskip-continue-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><!-- test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true} --><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre><!-- step {"runShell":"where node"} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-continue-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Find Node.js, then check the API================================.. test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true}Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere node.. step {"runShell":"where node"}.. test end.. test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onskip-continue-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-continue"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true}'/><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock><data name="doc-detective" value='step {"runShell":"where node"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API<!-- test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false} -->## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```<!-- step {"runShell":"where node"} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-continue-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Find Node.js, then check the API{/* test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false} */}## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```{/* step {"runShell":"where node"} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-continue-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Find Node.js, then check the API// (test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false})== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----+// (step {"runShell":"where node"})// (test end)// (test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onskip-continue-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><!-- test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false} --><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre><!-- step {"runShell":"where node"} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-continue-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Find Node.js, then check the API================================.. test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false}Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere node.. step {"runShell":"where node"}.. test end.. test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onskip-continue-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-continue"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false}'/><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock><data name="doc-detective" value='step {"runShell":"where node"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onskip-continue-windows","if": "$$platform == windows","onSkip": [{"continue": true}],"steps": [{"runShell": "where node"}]},{"testId": "data-route-test-onskip-continue-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onskip-continue-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onskip-continue-windowsif: $$platform == windowsonSkip:- continue: truesteps:- runShell: where node- testId: data-route-test-onskip-continue-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onskip-continue-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onSkip, stop: test
Varies: test.onSkip · Value: [{"stop": "test"}] · Effect: does nothing, because the skipped test already finished. The next test runs.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Find Node.js, then check the API## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Find Node.js, then check the API== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre></li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Find Node.js, then check the API================================Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere nodeCheck the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-stop-test"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock></li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API<!-- test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true} -->## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```<!-- step {"runShell":"where node"} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Find Node.js, then check the API{/* test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true} */}## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```{/* step {"runShell":"where node"} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Find Node.js, then check the API// (test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true})== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----+// (step {"runShell":"where node"})// (test end)// (test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><!-- test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true} --><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre><!-- step {"runShell":"where node"} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Find Node.js, then check the API================================.. test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true}Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere node.. step {"runShell":"where node"}.. test end.. test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-stop-test"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true}'/><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock><data name="doc-detective" value='step {"runShell":"where node"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API<!-- test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false} -->## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```<!-- step {"runShell":"where node"} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Find Node.js, then check the API{/* test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false} */}## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```{/* step {"runShell":"where node"} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Find Node.js, then check the API// (test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false})== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----+// (step {"runShell":"where node"})// (test end)// (test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><!-- test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false} --><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre><!-- step {"runShell":"where node"} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Find Node.js, then check the API================================.. test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false}Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere node.. step {"runShell":"where node"}.. test end.. test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-stop-test"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false}'/><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock><data name="doc-detective" value='step {"runShell":"where node"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onskip-stop-test-windows","if": "$$platform == windows","onSkip": [{"stop": "test"}],"steps": [{"runShell": "where node"}]},{"testId": "data-route-test-onskip-stop-test-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onskip-stop-test-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onskip-stop-test-windowsif: $$platform == windowsonSkip:- stop: teststeps:- runShell: where node- testId: data-route-test-onskip-stop-test-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onskip-stop-test-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onSkip, stop: spec
Varies: test.onSkip · Value: [{"stop": "spec"}] · Effect: on macOS and Linux the Windows test is skipped, so the spec’s remaining tests are skipped too. On Windows every test runs.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Find Node.js, then check the API## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Find Node.js, then check the API== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre></li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Find Node.js, then check the API================================Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere nodeCheck the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-stop-spec"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock></li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API<!-- test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true} -->## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```<!-- step {"runShell":"where node"} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Find Node.js, then check the API{/* test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true} */}## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```{/* step {"runShell":"where node"} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Find Node.js, then check the API// (test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true})== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----+// (step {"runShell":"where node"})// (test end)// (test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><!-- test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true} --><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre><!-- step {"runShell":"where node"} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Find Node.js, then check the API================================.. test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true}Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere node.. step {"runShell":"where node"}.. test end.. test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-stop-spec"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true}'/><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock><data name="doc-detective" value='step {"runShell":"where node"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API<!-- test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false} -->## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```<!-- step {"runShell":"where node"} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Find Node.js, then check the API{/* test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false} */}## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```{/* step {"runShell":"where node"} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Find Node.js, then check the API// (test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false})== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----+// (step {"runShell":"where node"})// (test end)// (test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><!-- test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false} --><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre><!-- step {"runShell":"where node"} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Find Node.js, then check the API================================.. test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false}Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere node.. step {"runShell":"where node"}.. test end.. test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-stop-spec"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false}'/><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock><data name="doc-detective" value='step {"runShell":"where node"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onskip-stop-spec-windows","if": "$$platform == windows","onSkip": [{"stop": "spec"}],"steps": [{"runShell": "where node"}]},{"testId": "data-route-test-onskip-stop-spec-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onskip-stop-spec-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onskip-stop-spec-windowsif: $$platform == windowsonSkip:- stop: specsteps:- runShell: where node- testId: data-route-test-onskip-stop-spec-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onskip-stop-spec-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onSkip, goToTest
Varies: test.onSkip · Value: [{"goToTest": "data-route-test-onskip-gototest-products"}] · Effect: on macOS and Linux the Windows test is skipped and jumps to the products test, so the cart test doesn’t run. On Windows every test runs.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Find Node.js, then check the API## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Find Node.js, then check the API== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre></li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Find Node.js, then check the API================================Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere nodeCheck the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-gototest"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock></li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API<!-- test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true} -->## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```<!-- step {"runShell":"where node"} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Find Node.js, then check the API{/* test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true} */}## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```{/* step {"runShell":"where node"} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Find Node.js, then check the API// (test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true})== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----+// (step {"runShell":"where node"})// (test end)// (test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><!-- test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true} --><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre><!-- step {"runShell":"where node"} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Find Node.js, then check the API================================.. test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true}Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere node.. step {"runShell":"where node"}.. test end.. test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-gototest"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true}'/><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock><data name="doc-detective" value='step {"runShell":"where node"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API<!-- test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false} -->## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```<!-- step {"runShell":"where node"} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Find Node.js, then check the API{/* test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false} */}## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```{/* step {"runShell":"where node"} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Find Node.js, then check the API// (test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false})== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----+// (step {"runShell":"where node"})// (test end)// (test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><!-- test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false} --><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre><!-- step {"runShell":"where node"} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Find Node.js, then check the API================================.. test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false}Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere node.. step {"runShell":"where node"}.. test end.. test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-gototest"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false}'/><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock><data name="doc-detective" value='step {"runShell":"where node"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onskip-gototest-windows","if": "$$platform == windows","onSkip": [{"goToTest": "data-route-test-onskip-gototest-products"}],"steps": [{"runShell": "where node"}]},{"testId": "data-route-test-onskip-gototest-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onskip-gototest-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onskip-gototest-windowsif: $$platform == windowsonSkip:- goToTest: data-route-test-onskip-gototest-productssteps:- runShell: where node- testId: data-route-test-onskip-gototest-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onskip-gototest-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get
onSkip entry if
Varies: test.onSkip · Value: [{"if": "$$platform != windows", "goToTest": "data-route-test-onskip-if-products"}] · Effect: a test routing entry’s if reads $$platform. It’s true on macOS and Linux, where the Windows test is skipped.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
# Find Node.js, then check the API## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.
= Find Node.js, then check the API== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre></li></ol><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li></ol><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li></ol></body></html>
Find Node.js, then check the API================================Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere nodeCheck the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-if"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock></li></ol></section><section><title>Check the cart</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li></ol></section><section><title>Check the products</title><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API<!-- test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true} -->## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```<!-- step {"runShell":"where node"} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-if-cart","detectSteps":true} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-if-products","detectSteps":true} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Find Node.js, then check the API{/* test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true} */}## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```{/* step {"runShell":"where node"} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-if-cart","detectSteps":true} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-if-products","detectSteps":true} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Find Node.js, then check the API// (test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true})== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----+// (step {"runShell":"where node"})// (test end)// (test {"testId":"data-route-test-onskip-if-cart","detectSteps":true})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onskip-if-products","detectSteps":true})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><!-- test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true} --><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre><!-- step {"runShell":"where node"} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-if-cart","detectSteps":true} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-if-products","detectSteps":true} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Find Node.js, then check the API================================.. test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true}Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere node.. step {"runShell":"where node"}.. test end.. test {"testId":"data-route-test-onskip-if-cart","detectSteps":true}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onskip-if-products","detectSteps":true}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-if"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true}'/><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock><data name="doc-detective" value='step {"runShell":"where node"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-cart","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-products","detectSteps":true}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js, then check the API<!-- test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false} -->## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```<!-- step {"runShell":"where node"} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-if-cart","detectSteps":false} -->## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --><!-- test end --><!-- test {"testId":"data-route-test-onskip-if-products","detectSteps":false} -->## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --><!-- test end -->
# Find Node.js, then check the API{/* test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false} */}## Find Node.js on Windows1. Find the Node.js executable:```shellwhere node```{/* step {"runShell":"where node"} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-if-cart","detectSteps":false} */}## Check the cart1. Send a `GET` request to `http://localhost:8092/api/carts`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}{/* test end */}{/* test {"testId":"data-route-test-onskip-if-products","detectSteps":false} */}## Check the products1. Send a `GET` request to `http://localhost:8092/api/products`.{/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}{/* test end */}
= Find Node.js, then check the API// (test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false})== Find Node.js on Windows. Find the Node.js executable:+[source,shell]----where node----+// (step {"runShell":"where node"})// (test end)// (test {"testId":"data-route-test-onskip-if-cart","detectSteps":false})== Check the cart. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})// (test end)// (test {"testId":"data-route-test-onskip-if-products","detectSteps":false})== Check the products. Send a `+GET+` request to `+http://localhost:8092/api/products+`.+// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js, then check the API</title></head><body><h1>Find Node.js, then check the API</h1><!-- test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false} --><h2>Find Node.js on Windows</h2><ol><li>Find the Node.js executable:<pre><code class="language-shell">where node</code></pre><!-- step {"runShell":"where node"} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-if-cart","detectSteps":false} --><h2>Check the cart</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li></ol><!-- test end --><!-- test {"testId":"data-route-test-onskip-if-products","detectSteps":false} --><h2>Check the products</h2><ol><li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.<!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li></ol><!-- test end --></body></html>
Find Node.js, then check the API================================.. test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false}Find Node.js on Windows-----------------------#. Find the Node.js executable:.. code-block:: shellwhere node.. step {"runShell":"where node"}.. test end.. test {"testId":"data-route-test-onskip-if-cart","detectSteps":false}Check the cart--------------#. Send a ``GET`` request to ``http://localhost:8092/api/carts``... step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}.. test end.. test {"testId":"data-route-test-onskip-if-products","detectSteps":false}Check the products------------------#. Send a ``GET`` request to ``http://localhost:8092/api/products``... step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="data-route-test-onskip-if"><title>Find Node.js, then check the API</title><body><section><title>Find Node.js on Windows</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false}'/><ol><li>Find the Node.js executable:<codeblock outputclass="language-shell">where node</codeblock><data name="doc-detective" value='step {"runShell":"where node"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the cart</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-cart","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>Check the products</title><data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-products","detectSteps":false}'/><ol><li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.<data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-test-onskip-if-windows","if": "$$platform == windows","onSkip": [{"if": "$$platform != windows","goToTest": "data-route-test-onskip-if-products"}],"steps": [{"runShell": "where node"}]},{"testId": "data-route-test-onskip-if-cart","steps": [{"httpRequest": {"url": "http://localhost:8092/api/carts","method": "get"}}]},{"testId": "data-route-test-onskip-if-products","steps": [{"httpRequest": {"url": "http://localhost:8092/api/products","method": "get"}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-test-onskip-if-windowsif: $$platform == windowsonSkip:- if: $$platform != windowsgoToTest: data-route-test-onskip-if-productssteps:- runShell: where node- testId: data-route-test-onskip-if-cartsteps:- httpRequest:url: http://localhost:8092/api/cartsmethod: get- testId: data-route-test-onskip-if-productssteps:- httpRequest:url: http://localhost:8092/api/productsmethod: get