coded-ui-tests

Coded UI driving test from multiple excel files

泄露秘密 提交于 2019-12-11 00:28:04
问题 Our strategy for using Coded UI to test our software is to create several Excel spreadsheets each with the testing steps for a particular test case. There will be one Driver spreadsheet that has a worksheet that lists the test cases to be run. The idea is to read the Driver spreadsheet and then go open the individual test case spreadsheets to run the test steps. The test steps will list a button or field, the action to perform (click, edit) and the data value or other expected result which

Visual Studio 2012 - Coded UI Test Wont Run

做~自己de王妃 提交于 2019-12-10 19:07:11
问题 I'm trying to create a Coded UI Test in Visual Studio 2012. When I add a new test VS will automatically start the recorder. I then do some basic clicks around in the WinForms application I want to test. I end the recording and generate a script. When I try to run that script it complies fine but I get the runtime error "Message: Unit Test Adapter threw exception: Method not found: 'Void Microsoft.VisualStudio.TestTools.Diagnostics.NonVSSqmClient..ctor(UInt32)'.." How do I get my scripts to

Test templates missing in visual studio 2010 ultimate

一个人想着一个人 提交于 2019-12-10 17:50:07
问题 Test templates such as Coded-UI testing and Web performance testing are missing. I originally had visual studio 2010 professsional installed. I upgraded to visual studio 2010 ultimate just so that I wanted to use Coded-UI testing and Web performance testing features. However, the options seem to be missing. It is as if the upgrade has not made a difference with regards to additional testing templates. I have a visual studio 2010 ultimate evaluation version installed. I have checked in Tools >

Coded UI - Unable to identify a html controls on a Wpfbrowser

落花浮王杯 提交于 2019-12-10 17:13:12
问题 I am new to CodedUI & C#. I am trying to automate a wpf application which has a WPF Browser. So basically, It's WPF container with html content inside. I have created a similar sample small application and shared it here. This application opens the amazon.in website within wpfwindow. WPF Browser application My problem is Coded UI is not able to identify the Html-Controls/elements like 'Buttons', 'Text input fields' properly. Below, the top image is from the WPF Browser app [Link which i have

passing command line arguments in coded ui tests

不想你离开。 提交于 2019-12-10 15:34:40
问题 Is it possible to pass command line arguments in coded ui test ? in normal C# programs we just pass the arguments along with the exe file eg: filename.exe "2" "7" in command prompt. but can something like this be done in coded ui tests? Thanks 回答1: No, you can do that. CodedUi tests are executed through command line through MSTest which does not support it. Check here to see the available command-line options of MSTest . However, you can create another Project (e.g. console application) to

How can I check if the new activity was started

℡╲_俬逩灬. 提交于 2019-12-10 12:14:39
问题 Scenario: The user starts the app The user goes to the "CreateAccountActivity" In order to use the application the user has to enter the email and a password The user clicks "create" which switches to the next activity. @Test public void createAccountAndLogIn() { onView(withId(R.id.login_create)).perform(click()); onView(withId(R.id.create_email)).perform(clearText(),typeText("xxx@gmail.com")); onView(withId(R.id.create_pass)).perform(clearText(),typeText("pass")); onView(withId(R.id.create

VS 2010, Coded UI Tests: Re-run failed test cases

匆匆过客 提交于 2019-12-10 09:59:11
问题 I'm using VS2010 Premium, Coded UI Tests. Do you know how to re-execute failed test cases after run? If test was passed after re-execution then it should be passed in result report. 回答1: Not so optimal way but you could put all your code to try/catch block and rerun the test if an exception is thrown: [CodedUITest] public class CodedUITest { private static int _maxTestRuns = 5; [TestCleanup] public void Cleanup() { //If the test has reached the max number of executions then it is failed. if (

Any way to automate SFSafariViewController in UI tests?

南笙酒味 提交于 2019-12-10 02:11:47
问题 Is there any way to automate SFSafariViewController? I like the Xcode 7 UI test feature, but it seems it does not support SFSafariViewController automation. Some of the UI flows I am testing require a web browser so the app uses SFSafariViewController to make it safer vs a web view. 回答1: If it's similar to launching extensions (currently broken with direct interactions), try tapping the screen at the point where the element you're looking for is: Example of tapping an action sheet which

Windows 10 (UWP) Coded UI

孤街浪徒 提交于 2019-12-09 18:29:36
问题 There is no Coded UI project in Visual Studio 2015 for UWP and I can't find any documentation anywhere saying there is a plan to bring support. Does anyone know if there is planned support it or have some alternative UI testing framework to work with Windows Universal? 回答1: I guess you can use this Coded UI Test Project (Universal Windows) which is under File->New->Project->Templates->Windows->Universal--> Coded UI Test Project (Universal Windows) for Coded UI project in Visual Studio 2015

Hand Coding Coded UI Tests [closed]

元气小坏坏 提交于 2019-12-09 09:12:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Hi I am looking at using Coded UI Tests (CUIT) to test an application. I have tried the recording option and this is not flexible enough for me. If you use it on a different size screen it breaks. I know you can hand code the tests but I cannot find any good examples of how to write a basic test. There are