This post will help you to check the recorded action during running a test project. Recorded actions are the actions taken at the time of running a project.
I am assuming that you created a windows project and test project.
So lets start with Adding coded UI test.
Step 1: Go to your test project, in my case it is “MyTestProject” , Right click on MyTestProject project and add -> Coded UI Test , The Code UI test file will be added.
Step 2: Generate code for coded UI test screen will display, here you can select if you want to use existing recorded project or want to create new record project.
Step 3: Record screen is available to record the test. Click on start recording, orange button (Please note that you have to start recording before you start performing any test actions).
Step 4: Run the project Start the project by Debug -> Start without debugging
Step 5: Ruining project is in front of you, now start filling data and performing actions . Enter values in both the text box and click on “Click” button.
Step 8: Now stop the recording by clicking the same recording button . Now you can check your recorded actions by Click highlighted button to check recorded actions.
My actions are:
- enter value 22
- enter value 2
- click on button click
- and some other actions I performed.
0 comments:
Post a Comment