On https://kb.froglogic.com/display/KB/Sharing+step+definitions+across+test+suites+%28BDD%29 it is described how to share step definition across test suits, but is not working for me.
My case:
source(findFile('scripts', 'python/bdd.py'))
setupHooks('../shared/scripts/bdd_hooks.py')
# Collect my custom step definitions:
collectStepDefinitions('/home/myuser/squish/pagesteps/steps')
def main():
testSettings.throwOnFailure = True
runFeatureFile('test.feature')
If I set this in test.py I get the error "Given is not defined" my implemented steps are not mapped (I emptied the steps folder from (shared/scripts/steps) path where steps are created when you select Implement missing steps)
Has anybody some info about how can I implement all the steps in a folder pagesteps? and not to be related with steps suite?
source(findFile('scripts', 'python/bdd.py'))
setupHooks('../shared/scripts/bdd_hooks.py')
collectStepDefinitions('/lib/panels/traffic/script_1')
the script_1.py contains the steps definitions – Horatiu Moldovan Aug 28 '18 at 10:56