thucydides

Is it a way to get the test method name within TestNG listeners on Configuration phase?

旧城冷巷雨未停 提交于 2020-03-25 19:19:28
问题 I have a TestNG listener that implements IInvokedMethodListener. On @BeforeMethod I need to setup some test context, here is the example: public class ThucydidesInvokedMethodListener implements IInvokedMethodListener2 { public void beforeInvocation(final IInvokedMethod method, final ITestResult testResult) { boolean areBeforeMethods = method.getTestMethod().getTestClass().getBeforeTestMethods().length > 0; if ((areBeforeMethods && method.getTestMethod().getTestClass().getBeforeTestMethods()[0

Is it a way to get the test method name within TestNG listeners on Configuration phase?

99封情书 提交于 2020-03-25 19:18:14
问题 I have a TestNG listener that implements IInvokedMethodListener. On @BeforeMethod I need to setup some test context, here is the example: public class ThucydidesInvokedMethodListener implements IInvokedMethodListener2 { public void beforeInvocation(final IInvokedMethod method, final ITestResult testResult) { boolean areBeforeMethods = method.getTestMethod().getTestClass().getBeforeTestMethods().length > 0; if ((areBeforeMethods && method.getTestMethod().getTestClass().getBeforeTestMethods()[0

jbehave + thucydides: how to override 300s timeout

放肆的年华 提交于 2019-12-12 14:04:18
问题 I'm using thucydides jbehave plugin to run Selenium tests. However, I can't run tests longer than 5 min in total due to jbehave timeout. I can't figure out how can thucydides/jbehave should be configured to override this limitation. Selenium tests use to be longer that 5 mins, so that should be an actual problem for many people. 回答1: 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

How do i execute story files in specific order in serenity BDD Jbehave

隐身守侯 提交于 2019-12-12 02:09:58
问题 I Have few jbehave story files in stories folder. whenever i execute the scripts it takes in alphabetical order. ex: current execution aaa.story bbb.story ccc.story i want the execution to be ccc.story bbb.story and skip aaa.story is there a way to run specific stories in specific order. in Serenity BDD + Jbehave 回答1: You can use Meta: to tag stories/scenarios. This is useful if you want to run just subset of stories/scenarios or skip some of them. Example: Meta: @sometag Scenario: some

missing pie chart and other elements when display serenity report from jenkins

岁酱吖の 提交于 2019-12-10 16:22:05
问题 Need your help! I've been working on integrating my automation test to Jenkins. I use Serenity BDD and JBehave. My Serenity report displayed OK when I run my test manually. But, when I integrate the test to Jenkins and try to display the report through Publish HTML Report Plugin, it can't display the pie chart and missing other elements as well. Any idea how to solve this? 回答1: Actually you don't need to downgrade Jenkins. This issue happens because of new content security policy headers that