Coded UI Test common test steps in class RRS feed

  • Question

  • Hello,

    I want to create class for common functions. I want to use it in codeduitest testmethods. For example navigatetourl() step, it must be data driven, because there are different urls in my web project. How can I do, Could you please give me an example? Thanks,

    • Edited by endrescue Friday, April 12, 2013 8:11 AM
    Friday, April 12, 2013 8:09 AM


  • This question seems very similar to another that you posted in this forum. Data driving is a method of executing the tests with a number of different sets of data, you cannot data drive a UI map and you cannot data drive a utility method. You can pass data from a test method into a called method via a parameter. You can also pass data from the data source of a data driven test into a called method.

    I would suggest you start by reading some of the many tutorials and blogs about data driving Coded UI tests. This blog is a good one to start with: http://blogs.msdn.com/b/mathew_aniyan/archive/2009/03/17/data-driving-coded-ui-tests.aspx



    Friday, April 12, 2013 8:48 AM