question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate call when call tag in other feature

See original GitHub issue

I update code for issue #2118. You can run cmd: mvn test -Dtest=Runner#testDemo bug-karate.zip

Hi, i have issue when i call tag from other feature. I have a feature demo1 call a tag one in feature demo2, tag one will call tag two in same file. But the output is duplicate call tag two. Here is detail: Feature demo1:

  Scenario:
    * call read('demo2.feature@one')

Feature demo2:

@ignore
Feature:
  @ignore @one
  Scenario:
    * print 'tag one'
    * call read('@two')
  @ignore @two
  Scenario:
    * print 'tag two'

Output:

tag one
tag two
tag two

You can see tag two is duplicate call. Can you explain to me?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ptrthomascommented, Sep 14, 2022

@CongSon you can do this, but I personally don’t recommend making your tests too complicated because of reasons explained here: https://stackoverflow.com/a/54126724/143475

* def myMethod = 'post'
* url 'https://httpbin.org/anything'
* request {}
* method myMethod

so you can use a variable for method. otherwise please assume what you want is not supported. in future please ask questions on stack overflow

1reaction
ptrthomascommented, Sep 8, 2022

@CongSon thank you very much. this is a bug >_<

we will have to fix this. in the meantime, I recommend using only one-level of call. also here below is a workaround:

* call read('demo2.feature@two')

Read more comments on GitHub >

github_iconTop Results From Across the Web

duplicate when call tag from other feature · Issue #2118 - GitHub
I have a feature A call a tag one in feature B, tag one will call tag two in same file. But the...
Read more >
Call other scenarios in same karate file, only by tag? [duplicate]
Closed last year. Hi we have scenarios that calls other scenario in same feature file. * call read('ShopCheckoutTest.feature@name=payment ...
Read more >
Call Tagging, Scoring & Lead Classification - ParaCore
First up is call tagging. The “Call Tags” tool under settings allows you to categorize calls into different buckets. The purpose of call...
Read more >
Duplicate an a existing call flow - CallRail Support
Assigning a duplicated call flow to a different company · Click the Settings icon on the left navigation bar. · Choose the company...
Read more >
Get rid of duplicate contacts on iPhone - Apple Support
In the Contacts app , link contact cards for the same person in different accounts so they appear only once in your All...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found