5
votes
How much C# should I learn in order to work with CodedUI?
If you are concerned about learning too much, you are doing it WRONG.
The more you learn, the easier it will be for you to solve common problems.
We are getting questions DAILY here which would be ...
3
votes
Accepted
What techniques can I use to determine the reasons for intermittent automated UI test failures?
My personal opinions:
Trying to analyse the testing environment closely, identify as many variables that may have effect on testing results as possible
Invite fresh eyes to aid you during this ...
3
votes
Accepted
org.openqa.selenium.NoSuchElementException when I run the selenium code by using a loop
Always use the explicit wait to let the webelement get loaded before performing any execution on it. A very common method used for the wait is as follows.
/* Initialize the WebDriverWait, with 30 ...
2
votes
How to apply POM to single window application using CodedUI
I think Martin Fowler's definition of Page Objects is really helpful:
Despite the term "page" object, these objects shouldn't usually be built for each page, but rather for the significant elements ...
2
votes
Accepted
How to apply POM to single window application using CodedUI
Of course you can use the WOM/POM. You need to consider DRY (Don't Repeat Yourself) and Single Responsibility/Ownership (Each function is owned by exactly one object, and is the sole responsibility of ...
2
votes
Accepted
How to use .xlsx Excel files as Data Source for Coded UI test?
Here is the Attributes:
Data Source Types and Attributes
Excel, ".xlsx" format
[DataSource("System.Data.Odbc", "Dsn=Excel Files;Driver={Microsoft Excel Driver (*.xls)};dbq=|DataDirectory|\\data....
2
votes
Accepted
Cast UITestControl to AutomationElement
I just came across this myself. You should be able to simply use the following:
AutomationElement ae = u.NativeElement as AutomationElement;
But be careful to reference the correct assembly in your ...
2
votes
CodedUI vs. UI Automation
Seems Coded-UI does use UIA underneath, but also some other technology.
Coded-UI test is a Record & Play automation tool which uses the
Microsoft UIA Library underneath. Since being a tool ...
2
votes
Coded UI selecting a Check box inner
Not sure what AutomationService.SelectCheckbox call is in your code but I have used the following code to select a CheckBox and has always worked for me:
((HtmlCheckBox)object).Checked = true;
2
votes
How much C# should I learn in order to work with CodedUI?
I think the basic level of coding skills will be sufficient however, I would completely avoid the record-and-playback/generated code approach in Coded UI. I also recently switched from UFT (VB ...
2
votes
Accepted
Automated UI Testing Tools for UWP Win10 Touchscreen Tablet Mobile Apps
Option #1: Perfecto has expanded on its Appium extension with the ability to develop and execute Appium test automation on Windows 10 native apps. Perfecto now supports WinAppDriver, the equivalent ...
2
votes
Accepted
Automation Testing Tool Options for Desktop Applications
I have experience with Sikuli, TestComplete, and have evaluated Ranorex.
TestComplete and Ranorex are about the same price range. Of the two, I was able to get TestComplete to interact with my AUT ...
2
votes
Automation Testing Tool Options for Desktop Applications
Since you rule out tools that are limited to Windows GUI you seem to be in need for a multi-platform tool. Maybe even a tool that can deal with non-standard UI controls.
In case your application ...
2
votes
Accepted
Coded UI - How write code to use existing browser (if exists) otherwise launch new browser window
First get the browser window process.
public static Process proc = null;
[ClassInitialize]
public void ClassInitialize(TestContext context)
{
Playback.Initialize();
BrowserWindow _bw = ...
1
vote
How to run codedUI test on visual studio build pipeline
I think you should use the Coded UI launch methods instead of starting the application with Windows. I think the visualstudio.com might not launch the test in an interaction desktop.
Code example, ...
1
vote
Coded UI automation not working in Chrome
You can add the disable-gpu option via ChromeOptions:
ChromeOptions options = new ChromeOptions();
options.addArgument("disable-gpu");
WebDriver driver = new ChromeDriver(options);
1
vote
Video / Screen Capture based testing tool?
Jing, SnagIt are good for screenshots and videos.
Coded UI is good for making tickets to document test cases.
1
vote
Coded UI not able to recognize menu items
It is clear from the Exception that Coded UI is unable to find the control. Whereas objects in a web page can have browser window as the parent but for WPF application you need to specify the object ...
1
vote
How much C# should I learn in order to work with CodedUI?
CodedUI generates code with record and playback. Most C# you will need is to change that code. I would handcode CodedUI tests and use the recorded as a helper for ideas how you can reach and interact ...
1
vote
Creating abstract test in Intern js
I am not that much familiar with intern.js. But I've worked in webdriver.io - with Mocha.
In that, achieved the abstract tests by created custom modules for the commonly used functions(for example, ...
1
vote
How to give multiple Class names with or condition in Coded UI search properties
you could use the FilterProperties if it is supported by the technology you use to find your control.
FilterProperties works as a "Or" when SearchProperties works as a "And".
The code should be:
...
1
vote
Accepted
For Test Scripts , Coded UI Option not available in Visual studio 2015
You need to have Visual Studio Enterprise Edition See
https://www.visualstudio.com/vs/compare/ and differences between Professional and Enterprise versions
1
vote
org.openqa.selenium.NoSuchElementException when I run the selenium code by using a loop
I'm getting an Exception as below ,when i run the selenium code by
using a loop
Agree with Keshav, You missed to "logout" before next login attempt.
Add or implement logout step to be back on ...
1
vote
org.openqa.selenium.NoSuchElementException when I run the selenium code by using a loop
import org.testng.Assert; // Importing Assert class from TestNG library
public class LoginPage
{
static WebDriver driver;
String expectedurl = "http://example.com";
@BeforeClass
public static void ...
1
vote
org.openqa.selenium.NoSuchElementException when I run the selenium code by using a loop
As per your code, you have already logged in that's why in second loop you can't find the By.name("user") element. Before ending the loop logout from the application and just after starting the loop ...
1
vote
What techniques can I use to determine the reasons for intermittent automated UI test failures?
screenshot on failure. I had a problem where I was actually on a completely different page than I was expecting because of overlapping elements when I clicked a link. A screenshot can give really good ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
coded-ui-tests × 54automated-testing × 19
c# × 18
uiautomation × 12
browser-automation × 11
test-automation-framework × 3
visualstudio × 3
mtm × 3
desktop-application × 3
selenium-webdriver × 2
test-management × 1
python × 1
performance × 1
load-testing × 1
javascript × 1
unit-tests × 1
chromedriver × 1
qa-developer × 1
mobile-automation × 1
regression-testing × 1
cross-browser-testing × 1
windows × 1
excel × 1
specflow × 1
exception × 1