jbehave + thucydides: how to override 300s timeout jbehave + thucydides: how to override 300s timeout selenium selenium

jbehave + thucydides: how to override 300s timeout


To override the timeout the user should add thucydides.properties file to the main folder of the project (if you use thucidides jbehave archetype, there is no such file by default).

set, for instance, story.timeout.in.secs=3000 and save the file. the timeout parameter will be overriden


To overide the timeout we can use the following :

 @Override        public Embedder configuredEmbedder(){StoryTimeouts.TimeoutParser t=new StoryTimeouts.TimeoutParser() {                @Override                public boolean isValid(String timeout) {                    return true;                }                @Override                public long asSeconds(String timeout) {                    return 500; <--- Storytimeout                 }            };            embedder.useTimeoutParsers(t);}