-4

I am wondering is it possible to define allure steps for tests in C# just like in Java. Is there any way to use it?

@Step("Step title: {0}")
public void func(String parameter, WebDriver driver) {}
newbieXX
  • 11
  • 3
  • Did you look in the docs? What does it say there? – JeffC Jul 03 '19 at 13:06
  • Yep. I checked it and it has manual only for Java. Author says: All features are supported by Java test frameworks, so we only provide Java examples here. For details on how a particular adapter works with the test framework of your choice, refer to the adapter guide. – newbieXX Jul 03 '19 at 13:16

1 Answers1

0

Alright, I've found an answer

        public Page DoAction(Object object)
        {
            AllureLifecycle.Instance.WrapInStep(() =>
            {
                pageInput.SendKeys(object.field);
            }, "Action");
            return new HomePage();
        }
newbieXX
  • 11
  • 3