Skip to content

Allow accessing the entry id in test files #847

Open
@k33nice

Description

@k33nice

Hey, thanks for your work! I think it might be nice to have the ability to access the entry ID inside the hurl test file.
E.g.:

#1.hurl
POST /foo
{
  "must_be_unique": {{ENTRY_ID}}
}
---EOF---
#2.hurl
POST /foo
{
  "must_be_unique": {{ENTRY_ID}}
}

Thus, it could be running as hurl --test *.hurl

It seems similar to #606. But it looks more simple, cuz it already there:

for (entry_index, entry) in hurl_file

Also, sequential ID can be handier rather than random in some cases.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions