将SpecExplorer与Silverlight一起使用 [英] Using SpecExplorer with Silverlight

查看:74
本文介绍了将SpecExplorer与Silverlight一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一种产品,目前使用Silverlight单元测试框架来运行单元测试。使用Spec explorer我已经构建了一个模型,并希望利用一些现有的自动化,而不是使用CodedUI或类似的东西编写全新的适配器(直接命中
UI)。但是,我不能包含库文件"Microsoft.SpecExplorer.RunTime.Testing"以及silverlight单元测试项目中的相关组件,因为规范浏览器是针对.NET CLR编译的,并且
视图模型和测试是针对Silverlight CLR。这里有工作或者我可能遗失的东西吗?

I am working on a product that currently uses the Silverlight unit test framework to run unit tests. Using Spec explorer I have built a model and want to leverage some of the existing automations instead of writing brand new adaptor (directly hitting the UI) using CodedUI or something along similar lines. However, I cannot include the library file "Microsoft.SpecExplorer.RunTime.Testing" and the associated components in the silverlight unit test project as spec explorer is compiled against .NET CLR and the View-Models and Tests are compiled against Silverlight CLR. Is there a work around here or something I may be missing ?

谢谢,

Aditya。 

Aditya. 

推荐答案

嗨Aditya,

Hi Aditya,

Spec Explorer不支持将Silverlight用作测试用例运行时。运行时代码需要针对适应Silverlight进行定制,Silverlight与普通.NET相比具有更多有限的功能。

Spec Explorer doesn't support using Silverlight as test case runtime yet. The runtime code needs to be tailored for adapting to the Silverlight, which has much more limited functionalities comparing to the normal .NET.

不幸的是,我没有看到问题的简单解决方法。您可以尝试的是,不是从Spec Explorer生成测试代码并在Silverlight上编译它们,而是编写一个测试运行程序解释器,它将探索结果文件作为输入 (。seexpl
文件在探索期间生成,这实质上是压缩的XML文件)并执行测试序列。这不是一项微不足道的工作。

Unfortunately I don't see an easy workaround for the problem. What you can try is that, instead of generating test code from Spec Explorer and compiling them on Silverlight, writing a test runner interpreter which takes the exploration result file as input (.seexpl file generated during exploration, which is essentially zipped XML files) and executes the testing sequences. It's not a trivial job.

我在功能积压中创建了一个项目,并将在下一个版本的计划中对其进行评估。如有其他问题,请随时联系speccon@microsoft.com。

I've created an item in our feature backlog and will evaluate it during out planning of next release. For further questions, please feel free to contact speccon@microsoft.com.

谢谢,

Yiming


这篇关于将SpecExplorer与Silverlight一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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