Are you in search of CODED Jobs? Then you are at the right place. We provide you with the complete CODED Ui interview Question and Answers on our page. What is Coded UI Test (CUIT)? CUIT are automated tests that drive your application through its user interface (UI). Hence, the name coded UI tests (CUITs). These tests involve functional testing of the UI controls. There are numerous leading companies that offer various job positions in Coded Ui like Coded Ui test engineer, Senior Engineer/ Senior Staff Engineer, Software test Engineer, Coded testing, QA Engineer and many more. To clear any interview, you must prepare well for interview, so we provide a complete and tricky Interview questions on our page. To know more about interview question and answers and for various positions in Coded Ui visit our website Wisdomjobs.com.
Question 1. What Is Automation Testing?
Answer :
Automation Testing is a process where tester writes the scripts using automation tool and execute the scripts to test the product/Software/application by comparing the actual results with expected results.
Question 2. Why Going For Coded Ui Automation Testing?
Answer :
Question 3. How Much % Of Testing Will Be Covered For Automation Testing?
Answer :
In automation testing, mostly the below conditioned test cases can only be automated:
Considering the above situations 60-70 % of testing can be covered for automation testing. Also height, width and colours of controls in application/software/product can’t be tested.
Question 4. How Many Types Of Programming Approaches Available In Coded Ui?
Answer :
3 Types of programming available in Coded UI.
Question 5. How Controls Will Be Recognized In Coded Ui?
Answer :
There is a tool accessible in Coded UI named Test Builder. In this Test Builder there is an option named ‘Cross Hair’, using this cross hair we can recognize the controls and can view the property information of controls.
Question 6. Explain About Test Builder?
Answer :
Test Builder is a tool accessible in Coded UI which contains 4 options
Question 7. What Is The Namespace To Work On Coded Ui Controls?
Answer :
Below the namespace to work on Coded UI:
using Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UITest.Extension;
Question 8. What Is The Namespace To Work On Web Controls?
Answer :
Below the namespace to work on Web Controls in Coded UI
using Microsoft.VisualStudio.TestTools.UITesting.HtmlControls;
Question 9. What Is Test Method In Coded Ui?
Answer :
In Coded UI, 1 TestMethod is same as 1 Test case.
Question 10. What Are Test Initialize And Test Cleanup Coded Ui?
Answer :
Test Initialize attribute is same as TestMethod which executes before a TestMethod by default. Browser launch, login functionality will be scripted in Test Initialize.
Test Clean Up attribute is same as TestMethod which executes after a TestMethod by default. Closing the browser, clearing cache, clearing cookies and log out functionality will be scripted in Test Clean Up.
Question 11. What Is Attribute Coded Ui? And Give Some List Of Attributes?
Answer :
[TestMethod] is an attribute before method in class and indicates the method should be executed to perform a test.
[DataSource(…)] is an attribute which is used for Data Driven Testing.
Like wise there are many attributes available in Coded UI:
[TestMethod]
[TestCleanup]
[TestInitialize]
[TestClass]
[AssemblyCleanup]
Question 12. What Is Approach To Perform Mouse Click Operation?
Answer :
using Click() method we can perform click operation on any control in Coded UI.
Total there are 10 Click() overload methods mentioned below:
Question 13. What Is Alternative Approach To Perform Click Operation(without Mouse.click())?
Answer :
Move the control on to ui element using Keyboard.SendKeys(“{TAB}”); then use Keyboard.SendKeys(“{ENTER}”); to perform click operation
Question 14. What Are Search Properties And Filter Properties?
Answer :
Search Properties are Mandatory (Primary) Properties which perform AND operation
Filter Properties are Secondary properties which perform OR operation
Question 15. How Many Ui Maps Can Be Created In Coded Ui?
Answer :
Any number of UIMaps can be created in Coded UI.
Question 16. How To Access The New Ui Map Controls From Another Cs File?
Answer :
Using Get and Set properties we can access the new UI Map controls in another cs files. Below the sample code.
public UIMap UIMap
{
get
{
if ((this.map == null))
{
this.map = new UIMap();
}
return this.map;
}
}
private UIMap map;
Question 17. Assertion And Uses?
Answer :
Assertions is same as validations which helps to verify if the actual output is same as expected output.
Below are some important classes used in Coded UI:
Question 18. Why We Are Going Assertions Instead Of If-else?
Answer :
When IF-Else is used and if test case fails still Coded UI passes the TestMethod, to overcome this issue Coded UI introduced Assertions.
Question 19. How Many Assertions Can Be There In A Test Method?
Answer :
There can be any number on Assertions.
Question 20. Difference Between Assert.isequal() And Assert.aresame()?
Answer :
Assert.IsEqual() refers to control value.
Assert.AreSame() refers to reference of the control.
Question 21. What Is Synchronization?
Answer :
Making sure that the speed of automation scripts execution should be in sync with application under test (AUT) response/speed.
Question 22. Levels Of Synchronization?
Answer :
Two levels of Synchronization:
Question 23. What Are Conditional Statements In Synchronization?
Answer :
Statements executes depending on some condition. In coded UI there are 8 Conditional Statements:
Question 24. What Are Unconditional Statements In Synchronization?
Answer :
Statements executed without any condition. In coded UI there is 1 Unconditional Statement Playback.wait().
Question 25. Explain Waitforcontrolenabled, Waitforcontrolexist And Waitforcontrolready?
Answer :
WaitForControlEnabled(): Waits for control to be enabled.
WaitForControlExist(): Waits for control to exist on UI.
WaitForControlReady():Waits for the control to be ready to accept keyboard or mouse input.
Question 26. What Is Mouse Click Using Coordinates?
Answer :
Mouse.Click(control, new Point(49, 3));
Coded UI will perform click operation exactly on 49,3 point of the control.
Question 27. Explain About Data Directory?
Answer :
Data Directory means Project Directory/Project folder.
Question 28. Explain Playback.playbacksettings.continueonerror?
Answer :
Generally in Coded UI at the time of script execution if any error occurs the execution will stop and test method fails.
If the execution wants still to continue if any error occurs then the below statement is helpful
Playback.PlaybackSettings.ContinueOnError = true;
Question 29. How Many Types Of Ddt Available On Coded Ui?
Answer :
Data Driven Testing can be done in Coded UI using 5 Data Source types:
Question 30. What Are The 4 Major Steps In Ddt?
Answer :
Below are the 4 major steps for DDT in Coded UI:
1.Prepare the test data.
2.Add the Data Source Attribute.
3.Get the test data from file and map to respective control.
4. Right click on file, go to properties and change the Copy to Output Directory value to ‘Copy always’.
Coded Ui Related Tutorials |
|
---|---|
CSS3 Tutorial | HTML 5 Tutorial |
Java Script Tutorial | C#. NET Tutorial |
QTP Tutorial | Selenium Tutorial |
CSS Advanced Tutorial | Software testing Tutorial |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.