Make a new feature file test.feature as below
Feature: Test bug
@first
Scenario: Test first
* getValue()
* karate.call('test.feature@second')
@second
Scenario: Test Second
* getValue()
Now go to karate-config.js and make below function
function getValue() {
karate.log('hello');
karate.log('excuted this function')
}
Now run your first scenario by right click on scenario, you will see that the function is getting recognized by 1st scenario but not getting recognized by second scenario