Commit 999ed48
authored
test: Add FiltersTests class with NUnit tests for Filters.FirstWithName (#902)
* Add FiltersTests class with NUnit tests for Filters.FirstWithName
Introduced a new test class `FiltersTests` in the `Appium.Net.Integration.Tests.helpers` namespace. The class is decorated with the `[TestFixture]` attribute and includes the following methods:
- `BeforeAll()`: Initializes the `AndroidDriver` and sets the implicit wait timeout.
- `SetUp()`: Starts the "ApiDemos" activity before each test.
- `FirstWithName_ReturnsCorrectElement()`: Verifies that `Filters.FirstWithName` returns the correct element.
- `AfterAll()`: Quits the `AndroidDriver` and stops the local Appium service if the server is not remote.
Necessary namespaces for NUnit, Selenium, and Appium are imported.
* Refactor namespaces and add using directive
Added `using` directive for `Appium.Net.Integration.Tests.helpers`.
Changed namespace from `Appium.Net.Integration.Tests.helpers` to
`Appium.Net.Integration.Tests.Android` for better organization.
* Fix typo in variable name in FirstWithName_ReturnsCorrectElement
* Simplify initialization of `capabilities` in `BeforeAll`
* Remove SetUp method that started ApiDemos activity1 parent 5e8a09c commit 999ed48
1 file changed
+61
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
0 commit comments