Get started
Learn how to discover slugs, browse and inspect tests, and run CI-style campaigns with the ktm command-line tool.
This tour assumes ktm is installed and KAPPTIVATE_API_KEY is set. If not, start with Installation.
1. Discover your slugs
Almost every command takes an operator and product slug. Find them first:
ktm operators list
ktm products list --operator my-operator
Product slugs take the form operator~product.
2. Browse and inspect tests
# List tests for a product, as a table
ktm tests list --operator my-operator --product my-operator~my-product -o table
# Inspect one test, including the variables and owners it needs
ktm tests get <test-id>
3. Run tests, CI-style
Build a campaign, then run it. This is the same path your pipeline uses:
ktm ci build \
--test-ids 16480,16838 \
--product my-operator~my-product \
--variant "API:Staging" > campaign.json
ktm ci run \
--test-config-path campaign.json \
--junit-file results.xml \
--output-file summary.json
Output formats
Add -o (or --output) to any command:
json(default): a JSON array, ideal for piping intojqtable: column-aligned and colored for humansplain: tab-separated values forawk,cut, andsort
What's next?
Last updated on