Hello, How can we search for content inside of test steps/scenarios after the move to cloud as the field "scenario" isnt found?
Welcome to the community.
You can't JQL on test steps, if you use Xray in this case, but you can use the GraphQL of Xray to do this (https://us.xray.cloud.getxray.app/doc/graphql/step.doc.html )
Are you using Xray or another Test app, look at the documentation of the app.
Hola Howard,
@Marc -Devoteam- is correct if you’re using Xray. After moving to Xray Cloud, the test definition, including manual steps and Gherkin scenarios, isn’t stored as a normal Jira custom field that JQL can search. That’s why the old Scenario field is no longer available in the JQL field list.
JQL can still narrow the search to a set of Test issues using normal Jira fields and Xray’s JQL functions, but it can’t perform a text search inside the step action, data, expected result, or Gherkin scenario itself.
For searches inside the actual test definition, you’d need to retrieve the Tests through Xray’s GraphQL API and inspect the steps, unstructured, or Gherkin values. The getTests query accepts JQL to identify the initial set of Tests, then returns their step content so your script or reporting tool can search it.
For example, you could first limit the results to a project and Test issue type using JQL, retrieve the test definitions through GraphQL, and then filter the returned steps for the word or phrase you need. That won’t return a native Jira search result without additional scripting or an app, but it’s the supported way to access that content in Xray Cloud.
If you’re using a different test management app, the answer may be different because each app stores its Cloud test data differently.
Thanks,
James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.