录制代码如下:
Browser("MERCHANT web site simulator").Page("MERCHANT web site simulator").WebEdit("customerid").Set "66"
Browser("MERCHANT web site simulator").Page("MERCHANT web site simulator").WebEdit("customfield").Set "Account with customer id 66"
提取字符串变量,改脚本如下:
CustomerAccount = 66
CustomerField = "Account with customer id" + CustomerAccount
Browser("MERCHANT web site simulator").Page("MERCHANT web site simulator").WebEdit("customerid").Set CustomerAccount
Browser("MERCHANT web site simulator").Page("MERCHANT web site simulator").WebEdit("customfield1").Set CustomerField
运行后,显示CustomerField = "Account with customer id" + CustomerAccount 这句语法出错。