Qtp9.5 new feature-Web plug-in extension (Web add-in extensibility)

Source: Internet
Author: User
The qtp9.5 installation package provides three plug-in extension SDK installation packages, including: (1) quicktest professional web add-in extensibility SDK setup (2) quicktest professional Java add-in extensibility SDK setup (3) quicktest professional. NET add-in extensibility SDK setup after installing the qtp Web plug-in extension (Web add-in extensibility), you can develop high-level support for third-party or personalized Web controls. In fact, the installation package of the Web plug-in extension SDK contains some support for ASP. NET Ajax controls by default, which can be used directly. In the <qtp installation directory>/DAT/extensibility/web, you can see an object named aspajaxtestobjects. XML file, and you can see many JavaScript files in the/toolkits/aspajax directory. Basically, each Javascript file corresponds to an ASP.. Net Ajax controls. By developing Web plug-in extensions, qtp can identify the behaviors of certain test objects and specified test objects. After the Web plug-in extension SDK is installed, there will be one more menu named extensibility, which contains two folders: (1) Documentation: Help document for Web plug-in extension. (2) samples: the "Web add-in extensibility book sample" on the tested page corresponding to tutorial in the Web plug-in extension help document ". Follow tutorial step by step to create a Web plug-in extension named "webexsample" and deploy it to the <qtp installation directory>/DAT/extensibility/web directory and restart qtp, you can see that the new plug-in is under the web in the plug-in management interface of qtp. After you select this plug-in to start and enter qtp, you can see that the web control attributes and methods are encapsulated using object spy. Web plug-in extension can effectively solve the problems of third-party and personalized Web controls, but its creation process is still quite troublesome, especially in the process of debugging and testing Web plug-in extension development, you need to restart qtp and IE frequently to make Web plug-in extensions and JavaScript take effect. Some people say that setting "Settings" in the XML configuration file of plug-in extension can avoid restarting ie: <? XML version = "1.0" encoding = "UTF-8"?> <Controls> <Settings> <variable name = "cache scripts" value = "false"/> </Settings> however, the test result is not passed and this setting does not take effect!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.