public void Acceptance_Graph_S02_TC03_ClickTryAPIOnExplorerCanShowPage() { GraphUtility.SelectToTryAPI(); Assert.IsTrue( GraphBrowser.SwitchToWindow("Graph Explorer"), @"The opened page should be ""Graph explorer"" when clicking Try the API"); }
public void Acceptance_Graph_S03_TC01_CanGoToOffice365GettingStartedPage() { GraphPages.Navigation.Select("Get started"); GraphUtility.SelectO365GettingStarted(); Assert.IsTrue( GraphBrowser.SwitchToWindow("Office Dev Center - Getting started with Office 365 REST APIs"), @"Clicking ""Office 365 Getting Started"" on Get started page can navigate to devofficecom, getting started page"); GraphBrowser.SwitchBack(); }
public void Acceptance_Graph_S03_TC09_CanDownloadCode_Node() { Platform platform = Platform.Node; //Simulate app registration via hardcoded querystring GraphBrowser.Goto(GraphUtility.RemoveRedundantPartsfromExtractBaseAddress() + "/quick-start?appID=c4664f74-aec4-4462-93e9-fb84a25d1f28&appName=My%20Node.js%20App&redirectUrl=http://localhost:3000/login&platform=option-node"); Assert.IsTrue(GraphPages.Office365Page.CardSetupPlatform.IsShowingPlatformSetup(platform), "Failed to choose platform {0}, which should be picked from querystring and selected on page load", platform.ToString()); GraphPages.Office365Page.CardDownloadCode.DownloadCode(); Assert.IsTrue(GraphPages.Office365Page.CardDownloadCode.IsCodeDownloaded(), "Failed to download code and display post-download instructions."); }