| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Small demo, how to write tests in specflow style on plain c#
While I appreciate the concept of how SpecFlow works, I have encountered some practical issues that have made it challenging to use effectively. Specifically, I have experienced the following problems:
Overall, while SpecFlow can be a useful testing framework in certain situations, its limitations and overheads may make it less suitable for C# based tests descriptions. Other alternatives, such as writing test cases in plain C# code, may provide a simpler and more efficient approach to test development.
P.S. Feel free to contact me, discuss, suggest updates etc.
Disclaimer. Now its just a proof of concept.
CreateTest("Login test")
.InitializeSelenumWith_Parameter("/nocache")
.OpenPage("mail.ru")
.WaitWorElement_Clickable("loginButton")
.Type_OnControl_("Name", "Jon@mail.ru")
.Type_OnControl_("Password", "123")
.ClickOn_Control("Login")
.AssertForElement_Exists("logo", i => i.Should().BeOfType<ImageElement>().Which.LogoName.Should().BeNull());
Step 0:Initialize Selenum With </nocache> Parameter Step 1:Open Page <mail.ru> Step 2:Wait Wor Element <loginButton> Clickable Step 3:Type <Jon@mail.ru> On Control <Name> Step 4:Type <123> On Control <Password> Step 5:Click On <Login> Control Step 6:Assert For Element <logo> Exists
| Back | FazBrowse Home | New Git URL |