当前位置:网站首页>使用 jMeter 对 SAP Spartacus 进行并发性能测试
使用 jMeter 对 SAP Spartacus 进行并发性能测试
2022-07-05 12:39:00 【汪子熙】
Spartacus是一个基于 Angular 的店面,是为SAP Hybris Commerce/ SAP Commerce Cloud设计的。它使用REST API与Hybris Commerce交互。在初始阶段,它就提供了Hybris店面的大部分核心功能。Spartacus 是可扩展和可定制的。

Spartacus有一个解耦的架构,这意味着店面本身作为一个独立的实体,在它的OOTB特性之上可以有自定义特性。它通过REST API与SAP Commerce Cloud或任何其他SAP、非SAP工具进行交互,这使它成为一个独立的框架。它允许前端开发人员不再理解后端技术,他们所需要的唯一交互是通过web服务层,这使得开发、测试和部署单个平台更加容易。

我们可以真正使用快捷的UI,即服务器端渲染和延迟加载组件等。因为它不再是平台的一部分,所以可以单独部署,允许它单独扩展。
在Angular中,每个功能都作为一个单独的模块存在。如果在SmartEdit或CMS Cockpit中创建了一个新页面,你需要在Angular代码库中创建一个单独的站点页面。
2021 年国庆节期间的成果。当时用的版本是 5.4.1:
启动之后直接报错:
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console…

换成 5.5 版本,打开文件报错:
Problem loading XML from:‘C:\Code\jmeter-projects\jerry-static\ssr\JerryStaticPagesTestPlan.jmx’.
Cause:
CannotResolveClassException: com.blazemeter.jmeter.RandomCSVDataSetConfig
Detail:com.thoughtworks.xstream.converters.ConversionException:
---- Debugging information ----
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message :
first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:66)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jmeter.save.ScriptWrapper
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[5]/hashTree[3]/com.blazemeter.jmeter.RandomCSVDataSetConfig
line number : 258
version : 5.5
解决方案:把文件 jmeter-plugins-random-csv-data-set-0.6.jar 放到 jMeter 安装目录的 lib/ext 文件夹下即可。
之后遇到新的错误:
Cannot invoke “org.apache.jmeter.gui.JMeterGUIComponent.clearGui()” because “guicomp” is null
把这些 jar 包放入 ext 文件夹,重启 jMeter,问题消失:

执行测试的命令行:
jmeter -n -t ./jerry-static/ssr/JerryStaticPagesTestPlan.jmx -p ./jerry-static/ssr/user.properties -l jerryresult.csv
jmeter -g results/static-results-2022-06-30-2143.csv -o reports/a1 -q ./jerry-static/ssr/user.properties
边栏推荐
- Pytoch uses torchnet Classerrormeter in meter
- Research: data security tools cannot resist blackmail software in 60% of cases
- 在家庭智能照明中应用的测距传感芯片4530A
- Difference between JUnit theories and parameterized tests
- I met Tencent in the morning and took out 38K, which showed me the basic smallpox
- 《信息系统项目管理师》备考笔记---信息化知识
- Redis cluster configuration
- Transactions on December 23, 2021
- Super efficient! The secret of swagger Yapi
- Detailed steps for upgrading window mysql5.5 to 5.7.36
猜你喜欢

Simply take stock reading notes (4/8)

Install rhel8.2 virtual machine

Detailed steps for upgrading window mysql5.5 to 5.7.36

Taobao product details API | get baby SKU, main map, evaluation and other API interfaces

自然语言处理系列(一)入门概述

CVPR 2022 | 基于稀疏 Transformer 的单步三维目标识别器

Lepton 无损压缩原理及性能分析

Taobao short videos are automatically released in batches without manual RPA open source

Pytoch uses torchnet Classerrormeter in meter

开发者,云原生数据库是未来吗?
随机推荐
以VMware创新之道,重塑多云产品力
研究:数据安全工具在 60% 的情况下无法抵御勒索软件
Distributed solution - distributed lock solution - redis based distributed lock implementation
Halcon 模板匹配实战代码(一)
Kotlin变量
2021.12.16-2021.12.20 empty four hand transaction records
Pytoch counts the number of the same elements in the tensor
Pytorch two-layer loop to realize the segmentation of large pictures
Using docker for MySQL 8.0 master-slave configuration
A possible investment strategy and a possible fuzzy fast stock valuation method
深度长文探讨Join运算的简化和提速
Hexadecimal conversion summary
RHCSA7
Anaconda creates a virtual environment and installs pytorch
Flume common commands and basic operations
GPON technical standard analysis I
在家庭智能照明中应用的测距传感芯片4530A
Full text search of MySQL
Language model
自然语言处理系列(一)入门概述
