예제 #1
0
파일: BaseTest.cs 프로젝트: sanoani/pract
        virtual public void BeforeEachTest()
        {
            app = AppInitializer.StartApp(platform);
            app.Screenshot("App Initialized");

            ItemsPage   = new ItemsPage(app, platform);
            NewItemPage = new NewItemPage(app, platform);
        }
예제 #2
0
        public void AddNewItem()
        {
            //Arrange
            const string itemName        = "Item Name";
            const string itemDescription = "Item Description";

            //Act
            ItemsPage.TapAddToolbarButton();
            NewItemPage.EnterItemName(itemName);
            NewItemPage.EnterItemDescription(itemDescription);
            NewItemPage.TapSaveToolbarButton();

            //Assert
            Assert.IsTrue(ItemsPage.IsPageVisible);
            Assert.IsTrue(app.Query(itemName).Length > 0);
        }