Abstract: PTS (Performance Testing Service) is a web-based excellent SaaS Performance Testing platform with powerful distributed pressure Testing capability, which can easily simulate the real business scenarios of massive users. PTS Platinum edition features visual page layout and is currently in rapid iteration, advocating complex interactive pressure measurement without coding; In addition to the features mentioned above, the TPS pressure gauge mode, real-time control and real-time effect of the speed is also industry-leading.


The original address: click.aliyun.com/m/43778/


PTS (Performance Testing Service) is a web-based excellent SaaS Performance Testing platform with powerful distributed pressure Testing capability, which can easily simulate the real business scenarios of massive users. PTS was officially launched on Aliyun in 2015, providing customers with cost-effective and industry-leading performance pressure measurement solutions.


PTS platinum edition is in August 2016, the official launch of new products, the core competence based on the whole ecological service ali single link/all link up to 4 years of pressure test platform, the platform at home in addition to support the daily flow of external pressure test, at the same time support the large and small to promote activities, such as Tmall double section 11, 12 and necessities, etc. PTS Platinum edition pressure initiation is from CDN nodes in hundreds of cities and operators across the country. Compared to the industry’s cloud host initiation, PTS Platinum edition pressure initiation is faster, from a wider range of sources, with better pulse capability and flow control.


PTS Platinum edition features visual page layout and is currently in rapid iteration, advocating complex interactive pressure measurement without coding; In addition to the features mentioned above, the TPS pressure gauge mode, real-time control and real-time effect of the speed is also industry-leading. PTS Platinum edition continues to provide cost-effective best practices.


What are the features, terms and concepts involved in PTS Platinum edition?


We (Ali high availability team) hope to continuously simplify the work of performance testing itself, return more energy to the business and performance itself, create greater value through the improvement of performance and experience, better reduce costs, and support core activities more stably. We chose to export our best practices through PTS Platinum Edition, a user-friendly and inexpensive product. PTS Platinum edition is a product created and maintained by the Alibaba Middleware – High Availability team.
So, in a pressure closed loop, PTS and other Aliyun products cover three important parts of their capabilities: the ability to translate and construct traffic, the ability to simulate and control real traffic, and the ability to present and locate problems.
Some of the key terms and concepts covered by PTS Platinum are as follows:
  • VUM: VUM(per virtual user per minute) is the charging unit of the PTS performance test. VUM=VU (Number of concurrent users in a pressure test task) x M(Execution duration of a pressure test task, in minute granularity. If the value is less than one minute, it is calculated as one minute.) 100 concurrent users running for 10 minutes equals 1000 vum, 1 concurrent user running for 1000 minutes equals 1000 vum, and so on. It is nice to note that PTS Platinum edition does not calculate VUM based on the preset maximum concurrency of the load time as most SaaS pressure products do, but instead charges VUM based on the actual consumed VUM.
  • Link: Defined as a business activity in PTS, it can be an interface, a page, etc., and is the smallest unit. Take e-commerce as an example, login, product details query, order submission and payment are all one link.
  • Series link: a series link is an ordered set of links with a certain business meaning (transaction). Only in the same series link can input and output parameters be associated (runtime data transfer), etc.
  • Scenario: a set of serial links constitute a scenario, which can simulate the combination form of various ordered sets, that is, complex business scenarios.
  • Pressure mode: PTS Platinum edition supports both concurrent mode and TPS mode, especially the second unique pressure mode, which is more focused on one-step evaluation of the throughput capacity of the pressured end, because the so-called concurrency on the server end is ultimately decoupled by the network into sequential requests.
  • Commands: In order to better fit the business logic and more realistically simulate user behavior, PTS Platinum edition provides a series of command functions. Commands are functional components that can change and control the behavior and flow of link execution. Instructions can be interspersed in various locations of the series link, generally only for a single series link, some special instructions will also work on multiple series links.


PTS Platinum edition how to do a pressure test?


For space reasons, the following is a simple pressure test configuration process, more powerful extensions can be purchased by the resource pack to do in-depth experience.
Assume that our pressure test scenario is a home -> search -> details -> Think time -> order process, that is, the pressure test scenario contains a series link, a series link is four links.
Click Link Management in the navigation bar on the left, and click Add link in the upper right corner of the link list page to input basic information.
If a request body, header, Cookie, or URL needs to be constructed separately for each request, upload it after completion as described in the PTS documentation.
In the service, some links need to output some values to the subsequent links. For example, userID and name are sent to the following links from the home page, and itemId is sent to the details and order pages from the search page. In this case, parameters need to be defined in the corresponding links (regular and JSON expression parsing is supported, as detailed in the document).
Accordingly, the link that requires an input parameter defines an input parameter and associates it with the scenario (described in the scenario section below). The definition of an input parameter is very simple. It is mainly a declaration of a variable, which can be used directly in the file directly through the #{param} placeholder. Itemid =#{itemID}&age=12; itemId =#{itemID}&age=12;


In the left navigation bar of the console, click Scenario Management. In the scenario list page, click to add a scenario. Enter the scenario name (which can be named after the business), set the duration (maximum pressure test time), select the mode (TPS or concurrent mode), and click OK.


As mentioned above, there is only one series link in the scenario. Add the previously configured service link to the series link. When adding, associate the outgoing and incoming parameters as shown in the following figure, and set the start and target pressure measurement values of a single link.




In the instruction part, the most common thinking time is added to this example. The thinking time is used to simulate the user’s thinking and reaction time between the two nodes, supporting various modes, such as fixed value, uniform distribution and normal distribution.


There are also a series of instructions, such as collection point, Cookie import and export, etc. For details, refer to the document and use it according to the business situation.
After all configurations are complete, the results are as follows:


Of course, you can use the debugging scenario function to easily debug the scenario before startup. In the case of no charging, a data or poll will be run and the request/response of each link will be structurally displayed. The input and output parameters/assertions will be separately displayed for troubleshooting.
Then save the configuration or directly go to pressure test, real-time client perspective monitoring and report effect as shown below:


When the pressure test is completed, it will automatically generate reports, which are divided into two parts: overview and details.
How, isn’t it already itching, PTS platinum edition now promoted the value of 9.9 early adopters package, enjoys a complete function, up to 500 concurrent, CDN traffic, total 10000 VUM, that is to say 500 concurrent corresponding may be thousands of TPS, so under the condition of throughput can also oh, pressure test for 20 minutes to use not expensive! There are also super value packages up to 1W concurrent and a large number of resource packages that continue to go up. — Click “Portal” for details


Identify the qr code below to read more about dry goods