Articles → CODED UI → Create Your First Recorded Coded UI Test Scenario

Create Your First Recorded Coded UI Test Scenario






Coded UI Test Builder




  1. Right click on any method (decorated with TestMethod attribute)
  2. Go to ‘Generate Code for Coded UI Test’—‘Use Coded UI Test builder...’
  3. Picture showing the Generate Code for Coded UI Test menu for generating the coded UI code

    Click to Enlarge

  4. A component will appear at bottom right side of the screen
Picture showing the recorder window of the coded UI

Click to Enlarge


Recording Your First Scenario




Picture showing start the recording process in the recorder window

Click to Enlarge





Picture showing the recording steps of the coded UI recorder

Click to Enlarge



Picture showing a button for generating the code for the recorded steps

Click to Enlarge



Picture showing the generated code in the test method

Click to Enlarge



Picture showing the code of the recorded method

Click to Enlarge


Running The Recorded Test Case




  1. Right click on the method.
  2. Click on ‘Run Tests’.
Picture showing the Run Tests context menu for running the test cases in coded Ui

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, November 10, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250