Forum Discussion

kandy1984's avatar
kandy1984
Contributor
7 years ago

Developing standards in C# .NET so that its easier to test in TC

Hi,

Im going to start testing a new application that the developers have start developing. As a TC user, what are the coding standards that i can ask the developers to incorporate so that testing can be made easier using TC. For example, should i ask them to have a standard and unique name for all WPF controls so that namesmaaping can be easier?

 

Pls give me advise so that building up a testing environment for this application can be of ease in TC.

 

Thanks for helping me.

Sudha

  • Hi,

     

    Yes, stable and unique object names is something that is of primary importance.

    Additionally, you may discuss and establish some naming conventions (or other means provided by .Net) for UI data controls (input fields, comboboxes, checkboxes, grids, tabs, etc.) and their respective labels.

    Having this in place will make you able to, for example, search for some label (e.g. 'Customer ID') and enter data into corresponding field. Or find all mandatory combo-boxes on a tab and iterate through them with elegant logging.

     

  • cunderw's avatar
    cunderw
    Community Hero

    If they can provide standard and unique names for the controls, that will help out tremendously. It's also good practice to have an open communciation with them, and be informed of any changes to the controls that are coming. 

    • AlexKaras's avatar
      AlexKaras
      Champion Level 3

      Hi,

       

      Yes, stable and unique object names is something that is of primary importance.

      Additionally, you may discuss and establish some naming conventions (or other means provided by .Net) for UI data controls (input fields, comboboxes, checkboxes, grids, tabs, etc.) and their respective labels.

      Having this in place will make you able to, for example, search for some label (e.g. 'Customer ID') and enter data into corresponding field. Or find all mandatory combo-boxes on a tab and iterate through them with elegant logging.

       

  • sriram1's avatar
    sriram1
    Occasional Contributor

    Hi Sudha,

     

    If you are going for automation.

    1. Just develop or create a Test  framework for that application in the name of variables using standard control names.

    2. It is the best way to understand by both testers and Developers.

     

    Thank and Regards,

    Sriram