Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Importing Recorded Scripts

Updated on 2025-01-07 GMT+08:00

In performance tests, virtual users simulate real users to use the tested system. The simulation process, such as login, search, and purchase in e-commerce applications, is implemented through recorded scripts. CodeArts PerfTest supports the record tool plug-in on the Chrome browser (version 26 or later versions). In the pressure test system, you can manually perform operations to capture request content and generate .json files. The recorded scripts simulate the actual operations of users, reducing the workload of manual packet writing and facilitating the use of the CodeArts PerfTest system.

Notes and Constraints

  • CodeArts PerfTest's record tool requires Chrome 26 or later versions.

    Click in the upper right corner of the browser and choose Help > About Google Chrome to view the browser version.

  • No. It is not supported in CodeArts PerfTest.

Downloading and Installing the Chrome Recording Plug-in

  1. Download the recording plug-in for Chrome.
  2. Decompress the installation package using a decompression tool.
  3. Enter chrome://extensions/ in the address bar. The extension page is displayed.
  4. Enable the developer mode on the extension page.

    Figure 1 Enabling the developer mode

  5. Click Load unpacked and load the folder decompressed in 2.
  6. When the installation is complete, the icon of the recording tool is displayed in Extensions in the upper right corner of the browser.

    Figure 2 Recording tool

Recording Scripts

Use the CodeArts PerfTest recording tool to record scripts.

  1. Open Chrome and click the icon of the CodeArts PerfTest recording tool in the upper right corner of the browser. The recording box is displayed.
  2. Click Start Recording.
  3. On the new tab page of the browser, enter the URL to be tested. The recording tool automatically records the HTTP requests during the access operation.
  4. When the recording is complete, switch to the recording tool page and click Pause Recording.
  5. By default, the record tool displays all types of requests. You can select the request composition based on the service requirements by clicking the Filter Content check box.

    • other: others
    • script: script
    • xmlhttprequest: XML HTTP request
    • main_frame: main frame
    • stylesheet: style sheet
    • image: image
    • font: font file
    • Ping: ping test

  6. If you select a request, the content of the request is displayed on the right of the page.

    If the recorded content is not required or a new request needs to be recorded, perform the following steps to record scripts again:

    1. Click Clear Content to clear the recorded request content.
    2. Click Start Recording.
    3. Perform operations on the new tab page and record again.

  7. Click Export, select the request to be exported, and click Confirm Export. The Export Content dialog box is displayed. Click Generate .json File to save the file to the local host. Plug-in recording script. The body type does not support the payload format.
  8. Close the tab where the record tool is located to disable the record tool.

Importing Recorded Scripts

  1. Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
  2. Locate a PerfTest project to be edited and click to edit the transaction library.
  3. Import a recorded script using either of the following methods:

    Method 1: On the Transactions tab page, click Import Script. Set Script Type to Manual recording script. Select the transaction and recorded script file to be imported. The recorded script contains one or more packet requests and can be imported to the corresponding transaction mode.

    Method 2: On the right of the desired transaction name, click Import Recorded Script and select the script file to be uploaded.

  4. Click Import. If the scripts are imported successfully, the system displays a message indicating this.
  5. Under the transaction, you can view the packets successfully imported. The number of packets successfully imported is the same as the number of requests in the uploaded script file.
  6. (Optional) Click to modify the imported scripts by referring to Adding Request Information (Think Time) based on service requirements.

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback