Bu sayfa henüz yerel dilinizde mevcut değildir. Daha fazla dil seçeneği eklemek için yoğun bir şekilde çalışıyoruz. Desteğiniz için teşekkür ederiz.

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
On this page

Show all

Compiling JMeter Scripts on Your Local PC

Updated on 2025-01-07 GMT+08:00
  1. Start the JMeter client.
  2. Create a thread group.

    Right-click Test Plan in the upper left corner of the JMeter client and choose Add > Threads (Users) > Thread Group from the shortcut menu to create a thread group for the JMeter test plan. A thread group is the basic execution unit of a JMeter project.
    Figure 1 Creating a thread group

  3. Add a request.

    Right-click Thread Group, choose Add > Sampler > HTTP Request, and add an HTTP request to the thread group.
    Figure 2 Adding an HTTP request

  4. Configure the HTTP request.

    The configuration on the Basic tab page of the HTTP request is as follows:
    • Protocol: The value can be HTTP or HTTPS.
    • Server Name or IP: Enter a domain name or an IP address.
    • Port Number: Enter the service port number. For HTTP, the default port number is 80. For HTTPS, the default port number is 443. You can also manually enter other ports.
    • HTTP Request: Specify the method, such as GET, POST, PUT, and DELETE. If you select POST, add body parameters.
    • Path: Enter the service request path.
    Figure 3 Configurations on the Basic tab

    On the Advanced tab page of the HTTP request, set the timeout period in Timeouts.

    • Connect: timeout period for connecting the client to the tested service. The default value is 20 seconds. You can set it to 10 seconds.
    • Response: response time of the tested service after the connection. By default, there is no limit.
    Figure 4 Configurations on the Advanced tab

  5. Configure HTTP headers.

    JMeter manages HTTP headers by thread group. Each thread group can be configured with an HTTP header manager. Right-click Thread Group and choose Add > Config Element > HTTP Header Manager to add an HTTP header manager. In the right pane of the HTTP Header Manager, click Add to add an HTTP Header.
    Figure 5 Adding an HTTP header

  6. Configure View Results Tree.

    To view the response result, add a listener. Right-click Thread Group, choose Add > Listener > View Results Tree, and add the view result tree to the thread group.
    Figure 6 Adding a view results tree

  7. (Optional) Import file variables, if any.

    CSV files are supported. In a CSV file, variable names are in the first row, and data is in other rows.

    Figure 7 A CSV file

    The following figure shows the variables in text format.

    Figure 8 Variables in text format

    Right-click Thread Group and choose Add > Config Element > CSV Data Set Config from the shortcut menu. Click Browse to select the target CSV file, and click Open to add the file.

    Figure 9 Adding a variable file

    To test the effect of referencing variables, you can introduce variables to the HTTP header. A file in ${variable name} format tells JMeter that the variables are read from external systems.

    Figure 10 Introducing variables to the header

  8. Save the test plan file and debug the script.

    Click on the top of the page, specify the save path and file name, save the test task as a JMX file, and store the project file (JMX) and variable file (CSV) in the same directory. The name of a JMX file contains only letters, digits, hyphens (-), underscores (_), and periods (.). A JMX file with an invalid name cannot be imported to CodeArts PerfTest.

    Click the green triangle button on the top to execute the task. You can view the execution result in View Results Tree, including Request Body, Request Header, Response Body, and Response Header.

Sitemizi ve deneyiminizi iyileştirmek için çerezleri kullanırız. Sitemizde tarama yapmaya devam ederek çerez politikamızı kabul etmiş olursunuz. Daha fazla bilgi edinin

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback