Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jtrunner fails if interview jtb includes answers not in expected interview #6032

Open
andrew-m-leonard opened this issue Mar 12, 2025 · 0 comments
Assignees

Comments

@andrew-m-leonard
Copy link
Contributor

andrew-m-leonard commented Mar 12, 2025

Jtrunner fails if interview jtb includes answers not in expected interview.
This is typically seen when doing a customruntime for and individual/few testcases, whereby the Harness determines from the small set of tests the required interview questions. However currently Jtrunner generates a JTB response file based on the top-level group, which can include more answers than is required for the tests selected. This causes the error like:

Configuration file can not be imported due to question with specified tag "jck.env.runtime.xxxxx" was not found on path. The path is:jck.intro .....

A solution to this is to change the Jtrunner so it generates only a top-level answer JTB, ie. the very basic info that is valid for all tests, then for other properties that are only valid for some tests within a group, to instead update the runtime.jti Java property file with those values, ie.:

  1. Download jck/jtrunner/config/jck21/runtime.jti into a temp name, eg.runtime_temp.jti
  2. Determine required properties for test group, and set property values in runtime_temp.jti
  3. Run Harness using @GenericTopLevel.jtb @runtime_temp.jti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant