Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test executes so slower than call through Postman on Macbook Pro M1 #2880

Closed
minhldhe130866 opened this issue Aug 1, 2022 · 10 comments
Closed

Comments

@minhldhe130866
Copy link

Im testing restAPI, with the same body and url, I called via Postman (0.5 sec) so much faster than call by code (more than 1mins)
image
image
I need all help :((

@wakaleo
Copy link
Member

wakaleo commented Aug 1, 2022

What version of Serenity are you using? Are you using plain RestAssured, or just SerenityRest? Is this for every test, or just the first test (what is the total time if you add more tests).

@minhldhe130866
Copy link
Author

What version of Serenity are you using? Are you using plain RestAssured, or just SerenityRest? Is this for every test, or just the first test (what is the total time if you add more tests).

Im doing use 2.4.34 ver and SerenityRest. It happened on every my testcase :(

@wakaleo
Copy link
Member

wakaleo commented Aug 1, 2022

Have you tried with a more recent version?

@minhldhe130866
Copy link
Author

Have you tried with a more recent version?

I'll try

@minhldhe130866
Copy link
Author

It doesn't work for me :((( I tried to use 3.3.0 ver :(

@wakaleo
Copy link
Member

wakaleo commented Aug 3, 2022

There is a startup time due to the code instrumentation in RestAssured. After that, the tests should run at normal speed. I can't reproduce any performance issues other than a few seconds delay on startup. Can you provide a sample project that reproduces this issue?

@wakaleo
Copy link
Member

wakaleo commented Aug 22, 2022

Closed for lack of activity

@wakaleo wakaleo closed this as completed Aug 22, 2022
@minhldhe130866
Copy link
Author

sorry, I can provide source code example because of my company's privacy. help meeee @wakaleo

@minhldhe130866
Copy link
Author

Is there any ways for me to log every step program running ?

@minhldhe130866
Copy link
Author

I check service log, I recieved nothing after SerenityRest.given() was called. I don't know why. As normal, it must have sth in log such as body request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants