Double Click UIMap1.cs and UIMap1.Designer.cs to open both files and copy using directives from UIMap1.Designer.cs to UIMap1.cs
Add custom Assertion Method to UIMap1.cs that validates properties of an HTML Hyperlink
Add call to Assertion Method to CodedUITestAmazon.cs and log messages using TestContext.writeline in a new [TestMethod]
Select Build>Build Solution
Open Test Explorer under Test>Windows>Test Explorer
Select Test Method name, right click, and “Run Selected test”
Test Runs: Loads IE to www.amazon.com validates properties of hyperlink and logs messages to Output: result is displayed in TestExplorer
Click Output link to view messages that were logged
No comments:
Post a Comment