How to use Eclipse TPTP to test Web application methods and extensions

Source: Internet
Author: User
Tags extend garbage collection

In this case, Eclipse Test and Performance Tools Platform (TPTP) was born. The TPTP project, which was established in August 2004 as Eclipse's top-tier project, is a software architecture and several components that extend the Eclipse platform, providing testing, performance, and monitoring tools on the Eclipse platform, open source and extensible tools for any vendor or The sender can create new tools or make improvements to existing tools. Some Java, C, and C + + developers can use TPTP to build unique tools for other developers, or they can combine the tools provided by TPTP and other features of Eclipse to build and deploy applications for use by users. The following figure is the location of the TPTP in the Eclipse's overall architecture.

Figure 1.TPTP location in the Eclipse architecture

This article focuses on the process of TPTP automatic recording of Web test behavior and automatically generating test scripts and automatically generating JUnit test scripts under TPTP. In addition, the author analyzes the shortcomings of this method and proposes an extension method of WEB application testing using existing framework and its application.

TPTP Overall structure

Simply put, TPTP is "building a common, scalable standards-based tool platform on which software developers can create proprietary, interoperable testing and performance tools." TPTP is divided into four subprojects: TPTP Platform Project, testing tools project, tracing and Profiling tools project, monitoring Tools project. The core and provision of the basic services is the Platform subproject, the remaining three subprojects are built on this basis. Testing tools is a tool for testing, tracing and Profiling tools is a tool for tracking and analysis, and monitoring tools is a tool for real-time monitoring. Based on these off-the-shelf platforms and tools, it is also easy to develop our own customized test, analysis, and monitoring tools.

The following is a detailed introduction to the current version of TPTP, which includes the core tools and three core derivative tools.

TPTP Platform

TPTP provides the basic code for UI development, data collection, rule-based data querying, and control of applications. For example, TPTP provides many wizards that other tools can reuse and extend. It also provides a programming interface and a daemon to help collect data from a running local or remote process.

TPTP Testing Tools

This project is built on top of the TPTP, providing additional services that are required for various automated tests of the application. The current version supports JUnit automated testing, a point and click Scripting System for manual testing and recording of results, and an automated system for testing Web applications, including a logger that can record and replay web browsing sessions and validate results. The Eclipse V4.1 version also includes a graphical user interface (GUI) logger that can record and replay mouse and keyboard events in an SWT-based interface.

TPTP Monitoring Tools

This project collects, analyzes, and graphically displays data from log files or statistical data collected from applications.

TPTP Tracing and Profiling Tools

The project also expands TPTP to collect and analyze resource usage data in running applications, including CPU and memory. This tracking tool also allows you to interact with a running process. For example, you can manually implement garbage collection and check the remaining object pools to find and fix memory "leaks."

The following figure is a collaborative relationship between the four subprojects of TPTP:

Figure 2.TPTP Frame composition

Related Article

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.