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

Improve documentation around Regex-based test steps #210

Open
AsgerIversen opened this issue Jan 24, 2022 · 0 comments
Open

Improve documentation around Regex-based test steps #210

AsgerIversen opened this issue Jan 24, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation Usability
Milestone

Comments

@AsgerIversen
Copy link
Collaborator

Originally filed January 14 2022 by Rolf Madsen on GitLab

the SCPI and Process steps both uses regular expressions to do some simple parsing of the output, but actually the behavior is a bit surprising or at least not obvious.

Lets say the output of a SCPI step was:

"1.0, 2.0, 3.0"

In order to parse this, id expect this to be enough:

Regex: ([^,]+),?
Column Names: X, Y, Z
Behavior: Groups as Columns

This however gives an error saying the the number of columns does not match the number of groups. The regex for this means that I will instead get three rows with one column in each.

To do what I want I have to do like this:

Regex: ([^,]+),([^,]+),?([^,]+)
Column Names: X, Y, Z
Behavior: Groups as Columns

I think we should document the behavior with some examples or find more intuitive behaviors.

@AsgerIversen AsgerIversen added documentation Improvements or additions to documentation Usability labels Jan 24, 2022
@AsgerIversen AsgerIversen added this to the Backlog milestone Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Usability
Projects
None yet
Development

No branches or pull requests

1 participant