手工编码codeD UI测试 [英] Hand Coding Coded UI Tests

查看:145
本文介绍了手工编码codeD UI测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我期待在使用codeD UI测试(CUIT)来测试应用程序。我曾尝试录制选项,这是不是对我不够灵活。如果你使用一个不同的屏幕尺寸上它打破了。

我知道你可以用手code中的测试,但我找不到如何编写一个基本测试的很好的例子。有迹象表明,使用奎特,但这些职位从2011年起就在这里的例子,我不知道他们是怎么了相关的新的升级,从微软到CUIT。

这些测试需要在Visual Studio 2012旗舰版我的生成环境进行整合,这就是为什么我不使用硒。

和code样品或链接到很好的教程将AP preciated,但特别是我在寻找如何启动手动编码我CUITs为例


解决方案

在code首先codeD UI测试API项目上codePLEX(的 HTTP://$c$cdui$c$cfirst.$c$cplex.com/ )包括项目的演示,您可以下载 - 应用试验。它的设计建造CUIT测试,而上记录/回放的依赖。

这是你需要,如果你去一个code-唯一基础上工作最重要的事情是要避免自动生成的对象上的依赖性映射录音创建的CUIT的一种方式。在code-第一个项目使用映射到各个页面对象类来解决这个 - 你需要扩展项目code与桌面应用程序工作,如果我没有记错

(我不隶属于与该项目以任何方式 - 它只是唯一的手工编码比奎特其他的资源,我发现,和奎特已一段时间没有更新了,我最后一次见到)<。 / p>

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 examples on here that use CUITe but these posts are from 2011 and I'm not sure how relevant they are anymore with the new upgrades to CUIT from Microsoft.

These tests need to be integrated with my build environments in Visual Studio 2012 Ultimate, that is why I'm not using Selenium.

And Code samples or links to good tutorials would be appreciated, but in particular I am looking for an exampl on how to start hand coding my CUITs

解决方案

The Code First coded UI test API project on CodePlex (http://codeduicodefirst.codeplex.com/) includes a project demo that you can download - application and tests. It's designed for building CUIT tests without the dependency on record/playback.

The biggest thing that you need if you're going to work on a code-only basis is a way to avoid the dependency on the autogenerated object map the CUIT recordings create. The Code-First project uses classes mapped to individual page objects to work around this - you'd need to extend the project code to work with desktop applications if I remember correctly.

(I am not affiliated with this project in any way - it's just the only hand-coding resource other than CUITe that I've found, and CUITe hasn't been updated in a while, the last I saw).

这篇关于手工编码codeD UI测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆