From the course: Advanced Appium

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Multiple contexts in one test

Challenge: Multiple contexts in one test - Appium Tutorial

From the course: Advanced Appium

Start my 1-month free trial

Challenge: Multiple contexts in one test

(upbeat music) - [Man] For this challenge, we are going to write an automated test for the functionality of this test app that we've been using. Remember, this app looks a bit like a web browser, where you type an address into the URL and attempt to load it up in the web view, but there's a silly gimmick to the app. If you try and type something in that is not the address for the AppiumPro website, the app will instead show an alert telling you that it's not allowed. If I try to go to CloudGrey's website and click go, I'll be told that I am not allowed to visit that URL. So basically, we want to test this functionality. How do we test it? Well, by putting in the address of another site, like we just did, and using Appium to prove that an alert popped up, as the result. Then, of course, we need to test the positive case, where we put in the address of the AppiumPro website and make an assertion that we did actually navigate…

Contents