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 ,如需转载请自行联系原作者。
目录
相关文章
|
1月前
|
算法 安全 编译器
【C++20 新特性Concepts 概念】C++20 Concepts: Unleashing the Power of Template Programming
【C++20 新特性Concepts 概念】C++20 Concepts: Unleashing the Power of Template Programming
46 0
|
6月前
|
存储
使用 ABAP 代码获得 SAP 系统支持的所有 language 列表
使用 ABAP 代码获得 SAP 系统支持的所有 language 列表
31 0
|
6月前
|
SQL 开发框架 自然语言处理
什么是编程领域的 DSL - Domain Specific Language
什么是编程领域的 DSL - Domain Specific Language
60 0
|
6月前
|
SQL JSON 前端开发
SAP Restful ABAP Programming 和 HTML Over the wire 的一些对比
SAP Restful ABAP Programming 和 HTML Over the wire 的一些对比
52 0
|
vr&ar Perl
Fiori Front End Supported Language究竟支持哪些语言
Fiori Front End Supported Language究竟支持哪些语言
Fiori Front End Supported Language究竟支持哪些语言
|
XML 数据格式
SAP ABAP实用技巧介绍系列之Debug XSLT transformation
SAP ABAP实用技巧介绍系列之Debug XSLT transformation
207 0
SAP ABAP实用技巧介绍系列之Debug XSLT transformation
|
XML 数据格式
|
前端开发 Java
ABAP Development Tools的语法增强
ABAP Development Tools的前端是Java,根本识别不了ABAP。那么在ADT里的ABAP语法高亮是如何实现的? 第一次打开一个report时,显示在ADT里的代码是没有任何语法高亮显示的,
94 0
ABAP Development Tools的语法增强
|
XML 人工智能 JSON
术语 | 图灵完备语言(Turing-Complete Language)
如果一个计算机语言具有图灵完备性(Turing Completeness),那么这个语言就是图灵完备语言(Turing-Complete Language)。
1753 0
术语 | 图灵完备语言(Turing-Complete Language)
|
XML JSON 数据格式
编码与模式------《Designing Data-Intensive Applications》读书笔记5
进入到第四章了,本篇主要聊的点是编码(也就是序列化)与代码升级的一些场景,来梳理存储之中涉及到的编解码的流程。目前主流的编解码便是来自Apache的Avro,来自Facebook的Thrift与Google的Protocolbuf,在本篇之中,我们也会一一梳理各种编码的优点与痛点。
1280 0