diff --git a/general/api-testing1/test-suite-editor/functions.md b/general/api-testing1/test-suite-editor/functions.md index 0aff5ec..5b01257 100644 --- a/general/api-testing1/test-suite-editor/functions.md +++ b/general/api-testing1/test-suite-editor/functions.md @@ -454,6 +454,14 @@ Extracts a value from `target` using `jsonpath` as a JSONPath query. If there is Similar to `__jsonpath` but returns **all results from the JSONPath** and not only one as happens when using `__jsonpath.` +### `__xpath(target,xpath)` + +Extracts a value from `target` using `xpath` as an XPath query. If there is no match, an empty string will be returned. + +* `${__xpath('val','//key/text()')} // returns 'val'` +* `${__xpath(target,xpath)} // returns 'val' assuming target is 'val' and xpath is '//key/text()'` +* `${__xpath('val','//missing/text()')} // returns ''` + ### `__jsonpath_keys(target,jsonpath)` Returns the keys of the extracted value from `target` queried by `jsonpath` in an array. Works similar to [Object.keys](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys). diff --git a/quick-guide/quick-start-guide.md b/quick-guide/quick-start-guide.md index 62acf3b..8c0deaa 100644 --- a/quick-guide/quick-start-guide.md +++ b/quick-guide/quick-start-guide.md @@ -149,6 +149,7 @@ Want to make Loadmill’s AI match your team’s language? 1. Go to **Settings → Algorithm → AI Prompts**. 2. Customize how Loadmill: * Describes steps (tone, style, emojis, business terms) + * Groups related steps using AI * Explains failures (e.g., known API errors) * Suggests next steps in a flow