Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • OpenTAP OpenTAP
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 54
    • Merge requests 54
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenTAP
  • OpenTAPOpenTAP
  • Issues
  • #827
Closed
Open
Created Jan 14, 2022 by Rolf Madsen@romadsen-ksDeveloper

Improve documentation around Regex-based test steps

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.

Assignee
Assign to
Time tracking