VSTS2008如何参数化传递给下一页的表单值 [英] VSTS2008 how to parameterize the form values that are passed to next pages

查看:109
本文介绍了VSTS2008如何参数化传递给下一页的表单值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我记录了一个添加文本值并保存的表单,其值记录如下:


ClientInfo = U 0标题Mr. U 1名* G1 U 2中间初始U 3姓氏H1 U 4出生日期* 1/1/1980(mm / dd / yyyy)U 5性别* MU 6地址1 U 7地址2 U 8城市,州*,邮编MN U 


AA_FRAMEWORK_CONTEXT_CleintInfoForm = {{$ HIDDEN1.AA_FRAMEWORK_CONTEXT_CleintInfoForm}}


以上记录的值将传递给下一个表格,如下所示:AA_FRAMEWORK_CONTEXT =%2fRoot% 2fCPE%2fClientsMenuItem%2fProfileGroup%2fPersonalInformation%2fClient


 


您能告诉我如何参数化整个表格吗?

解决方案

你好,


你的意思是你想用数据源中的数据替换一些参数,如果是这样,您可以将此参数的硬编码值替换为其格式为{{DataSourceName.FileName#csv.ColumnName}}的字符串代表v数据源中的alue。


例如,我在web测试中添加了一个名为test.csv的csv文件作为数据源,数据源名为DataSource1,csv文件有两列命名A和B.现在我想用两列的联合设置一个参数的值,我们可以将
的值设置为"{{DataSource1.test#csv.A}} + {{DataSource1 。试验#csv.B}}"


I recorded one form adding text values and saved, the values are recorded as follows :

ClientInfo=U0TitleMr.U1First Name*G1U2Middle InitialU3Last NameH1U4Date of Birth*1/1/1980(mm/dd/yyyy)U5Gender*MU6Address 1U7Address 2U8City, State*, ZipMNU 

AA_FRAMEWORK_CONTEXT_CleintInfoForm={{$HIDDEN1.AA_FRAMEWORK_CONTEXT_CleintInfoForm}}

The above recorded values are passed to the next form as follows : AA_FRAMEWORK_CONTEXT=%2fRoot%2fCPE%2fClientsMenuItem%2fProfileGroup%2fPersonalInformation%2fClient

 

Can you please tell me how to parameterize the whole form ?

解决方案

Hello,

Do you mean you want to replace some parameter with data from data source, if so, you can replace the hardcoded value of this parameter with string whose format like this {{DataSourceName.FileName#csv.ColumnName}} to stand for the value in data source.

For example, I have added one csv file named test.csv as data source in web test, the data source is named DataSource1, the csv file has two columns named A and B. Now I want to set the value of one paramter with the union of the two columns, we can set the value to be "{{DataSource1.test#csv.A}}+{{DataSource1.test#csv.B}}"


这篇关于VSTS2008如何参数化传递给下一页的表单值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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