Comments (5)
欢迎试用
from arex-agent-java.
支持,并发或异步的场景都支持,随机数的话可以配置动态类方法解决(即录制的随机数和回放环境时保持一致,就能保证回放的分支和录制时一致),但有一点需要确认,你说的任务是job那种定时任务类型吗?arex录制回放的前提是基于spring web、java servlet、dubbo、netty这些组件。
from arex-agent-java.
支持,并发或异步的场景都支持,随机数的话可以配置动态类方法解决(即录制的随机数和回放环境时保持一致,就能保证回放的分支和录制时一致),但有一点需要确认,你说的任务是job那种定时任务类型吗?arex录制回放的前提是基于spring web、java servlet、dubbo、netty这些组件。
就是复杂的异步场景,配置动态类方法是如何把MockResult正确匹配到异步线程中,让录制的随机数和回放环境时保持一致呢,因为每个异步线程的执行逻辑可能存在非幂等
from arex-agent-java.
你不用担心异步线程切换,arex会帮你传递的,回放的基本逻辑就是根据请求参数去匹配录制的数据,如果请求参数一样就能回放成功(返回录制的数据),只要配置的动态类方法传参和录制时一样即可返回录制时的随机数了
参考:动态类配置
from arex-agent-java.
感谢大佬,看到相应代码了,应该是这里把 https://github.com/arextest/arex-agent-java/blob/main/arex-instrumentation-api/src/main/java/io/arex/inst/runtime/match/ReplayMatcher.java#L30
from arex-agent-java.
Related Issues (20)
- hibernate mock 反序列化时丢失成员变量类型
- netty error:MessageAggregationException after load agent HOT 1
- Netty4 server无法记录或者回放
- 动态类因为SpringCGLIB代理 录制了但是回放无法使用从而回放失败 HOT 4
- alibaba.dubbo 2.x dubbo泛化调用回放失败
- [Bug] http外部调用没有被录制到 HOT 1
- [Bug] 反序列化时 null数据也会调用set方法 HOT 2
- SimpleAsyncTaskExecutor is not supported HOT 1
- [Bug] 对自定义注解进行了动态类配置,mock匹配时没有匹配到方法层,导致匹配错误产生对象转换失败异常 HOT 2
- mongoTemplate.insert无法录制及回放 HOT 1
- [Feature] webhook 需要支持标签
- 录制的用例列表, 支持根据参数查询
- [Bug] arex修饰的redisson其版本3.13.6时会出现回放异常日志,影响了应用的正常运行,需-Darex.disable.instrumentation.module=redisson-v3,redisson其他版本如3.15.6、3.22.1 不影响 HOT 1
- [Bug] hibernate mock 对象持久化状态不正确
- [Feature] 支持lettuce 6.0——6.1版本的修改内容
- [Feature] 在测试环境录制,又在测试环境回放,当动态类,中间件,数据库,外部调用等mock数据不存在时,能走真实调用.
- [Bug] mybatis-plus3.1 回放时没有实现insertBatchSomeColumn 主键生成填充 HOT 3
- [Bug] 0.4.4 agent 部署后,服务OOM HOT 1
- [Bug] 动态类方法拦截时,参数为null的异常
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arex-agent-java.