coded-ui-tests

Release .dll and .pdb after loading .dll file dynamically

浪尽此生 提交于 2019-12-25 17:56:39
问题 I'm building a windows application where I can call coded UI project (project named RecordAndPlayback) by clicking on a button. My aim is to call the test methods in the coded UI project and then be able to modify the test then call it back from my win app without closing it using the same button. I managed to call the test method, but I have a problem in modifying the test method after that. Whenever I build my coded UI project, I get an error ERROR CSC(0,0): Unexpected error creating debug

Can we add custom action to HtmlLoggerState

泪湿孤枕 提交于 2019-12-25 13:08:08
问题 I'm using VS2013/CodedUI and my palybacksetting is as follow: Playback.PlaybackSettings.LoggerOverrideState = HtmlLoggerState.AllActionSnapshot; I also have a 3rd party tool that I have integrated to my code that does some action that codedui can't...Iw an to be able to log those steps into the ActionLog.html file with where codedui capture the actions and screenshot. I searched a lot but didn't find anything on how we can achieve this. thanks in advance for any help 回答1: I posted a response

SwitchTo method for Coded UI

扶醉桌前 提交于 2019-12-25 12:53:12
问题 I am working on a, hand coded, Coded UI test for an application. The application has a certain function that operates in 2 windows. When a button is clicked, a new window appears and then the user makes a selection upon which that window closes, and then the user continues taking actions on the main window. With Selenium, I would handle that by iterating through all the window handles and switching by using passing it the URL of the page I wanted using the " driver.SwitchTo().Window(handle) "

SwitchTo method for Coded UI

烈酒焚心 提交于 2019-12-25 12:52:35
问题 I am working on a, hand coded, Coded UI test for an application. The application has a certain function that operates in 2 windows. When a button is clicked, a new window appears and then the user makes a selection upon which that window closes, and then the user continues taking actions on the main window. With Selenium, I would handle that by iterating through all the window handles and switching by using passing it the URL of the page I wanted using the " driver.SwitchTo().Window(handle) "

Analyzing Coded UI Tests Using Coded UI Test Logs

坚强是说给别人听的谎言 提交于 2019-12-25 04:53:17
问题 i am trying to get the html log file for the coded ui tests. i tried the steps mentioned in the following link https://msdn.microsoft.com/en-us/library/jj159363(v=vs.110).aspx By default it generated .png file(image file) which captures only the screenshot of the active window where the error occurred. So i tried using the other values for "EqtTraceLevel" in the configuration file, but there is no difference, it still generates image file. Does it work for Windows application? if it does what

Pass parameter to testsettings setup script

折月煮酒 提交于 2019-12-25 04:12:10
问题 I am using MTM to run Tests using a specific "Test Settings". I added a Setup script which is a batch file and its working fine. The batch file is echo %1 %2 Now I am not able to figure out how to pass argument to this batch file. I tried all the below methods, but the test run throws illigal character in path , incorrect file format , etc. errors. C:\SetupScript.bat Hello World "C:\SetupScript.bat" Hello World "C:\SetupScript.bat" "Hello" "World" start "" "C:\SetupScript.bat" Hello World I

Assign an AutomationId to ContentPresenter in a GridViewRowPresenter (ListView)

╄→尐↘猪︶ㄣ 提交于 2019-12-25 02:13:54
问题 I'm trying to do coded UI testing with a ListView that is has a list of checkbox items. Due to trouble with the coded UI code selecting the checkbox cell, I have been trying to add AutomationId to the controls, so that the coded UI test works. I'm almost there, in snoop I can see that the UIItemCell does not have AutomationId set, but I can't figure out how to set it in my app. The UIItemCell is where I need to set AutomationId I found with Snoop that it's the ContentPresenter The ListView

Coded UI-Continue the test run in spite of error

怎甘沉沦 提交于 2019-12-25 00:34:45
问题 My test case contains more than 10 assertions.Assume there is a problem in the third assertion(ie.) the Ui or object I have used for the third assertion is not recognized by the tool.Now the entire test case fails saying "Unable to find the control",the rest part of the same test case is not done. Is it feasible to run the test case fully( to continue with all the other assertions, in spite of error in the third assertion,assuming the unrecognized control is used only for the third assertion.

How to get cell color information of a WinCell with codedui?

风格不统一 提交于 2019-12-24 20:31:05
问题 I want to get color of a cell on a wintable and I think I need to get style of the color for that but and I do not know if its possible to get style information of a winCell in codedui. I can access cell and value inside it but I can not get any style information such as color. I tried a code I found on stack however it gives error for Cells for (int i = 0; i < uIG1Table.Rows.Count; i++) { for (int j = 0; j < uIG1Table.Rows[i].Cells.Count; j++) { uIG1Table.Rows[i].Cells[j].Style.BackColor = /

Coded ui Test fails at random times on server

*爱你&永不变心* 提交于 2019-12-24 09:52:09
问题 I am fairly new to the testing environment but I am stuck with a problem. i have created a test case (a few tests combined in an ordered test) and when I run them on my own pc they always pass (tried it many times to be sure) but when I run the test on our server the test fails at random times. examples - he doesn't right click a list to get the context menu - he seems to forget to click on a button so he cant access the next window. etc if i run the test again he may go over the previous