简体   繁体   English

编码的UI测试多语言组合框?

[英]Coded UI Test multilingual combobox?

I have a multilingual web application. 我有一个多语言的Web应用程序。 I have recorded test cases with coded ui test builder for English language. 我已经用英语的ui ui测试生成器记录了测试用例。 I have a issue about combobox. 我有一个关于combobox的问题。 It gives an error when I play test case for French language. 当我测试法语的测试用例时,它给出了一个错误。 Because it records that selecteditem value for english. 因为它记录了英语的selecteditem值。 How to solve this issue? 如何解决这个问题? Thanks, 谢谢,

When you record an action that sets a combo box value, you generally end up with both a method that executes the action, and a "Params" property where you can set a value to select. 当您记录设置组合框值的操作时,通常都会得到执行该操作的方法和“ Params”属性(可以在其中设置一个值)的选择。

For example, if you made a method called SelectFoo , you'd have a property called SelectFooParams , which exposes a value for the combo box. 例如,如果您创建了一个名为SelectFoo的方法,则将拥有一个名为SelectFooParams的属性,该属性将SelectFooParams组合框的值。

This allows you to record one action and then reuse it for multiple situations, instead of making one recording for every possible value of the combo box. 这使您可以记录一个动作,然后将其重复用于多种情况,而不必为组合框的每个可能值进行记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM