qtp descriptive programming multiple language(多语言支持)

简介:

so easy,

1,use the descriptive programming;

2,use the | chracter to seperate the different language text ,so it can found the different language text ,if it found then it recognize the object correctly ;

 

for example :

there is a web element ,in chinese it shows the text as :选择客户名称通过过滤器,but in english it shows the text is:Select customer by filter

  set objCustomerfilter=objPage.webelement("innertext:=Select customer by filter|选择客户名称通过过滤器 ","html tag:=A")

ok, now you can use the above code to make your code supported different language issues.enjoy it :) 



本文转自hcy's workbench博客园博客,原文链接:http://www.cnblogs.com/alterhu/p/3522323.html ,如需转载请自行联系原作者。
目录
相关文章
|
25天前
|
算法 安全 编译器
【C++20 新特性Concepts 概念】C++20 Concepts: Unleashing the Power of Template Programming
【C++20 新特性Concepts 概念】C++20 Concepts: Unleashing the Power of Template Programming
42 0
|
3月前
|
数据库
什么是 SAP ABAP 的 Draft Handling 特性
什么是 SAP ABAP 的 Draft Handling 特性
20 0
|
6月前
|
SQL 开发框架 自然语言处理
什么是编程领域的 DSL - Domain Specific Language
什么是编程领域的 DSL - Domain Specific Language
57 0
|
6月前
|
SQL JSON 前端开发
SAP Restful ABAP Programming 和 HTML Over the wire 的一些对比
SAP Restful ABAP Programming 和 HTML Over the wire 的一些对比
52 0
|
6月前
|
存储 供应链 数据库
[ChatGPT 勘误] SAP ABAP 里 cl_r3standard_persistence 的用途?
[ChatGPT 勘误] SAP ABAP 里 cl_r3standard_persistence 的用途?
41 0
|
XML Android开发 数据格式
ABAP Development Tool前后台交互的原理
ABAP Development Tool前后台交互的原理
134 0
ABAP Development Tool前后台交互的原理
|
XML 数据格式
SAP ABAP实用技巧介绍系列之Debug XSLT transformation
SAP ABAP实用技巧介绍系列之Debug XSLT transformation
207 0
SAP ABAP实用技巧介绍系列之Debug XSLT transformation
|
XML 数据格式
|
XML 数据格式
|
XML 数据格式
SAP ABAP实用技巧介绍系列之 ABAP XSLT match keyword
Created by Jerry Wang, last modified on Jun 26, 2014
145 0