Answered question

Can some one guide me who to write Java scripts in Neoload Please?

I want to write jave code to clear the browser cache and cleare the browser cooke data.

Some some guide me how to write the basic jave code?

Anonymous
Anonymous

Anonymous

Level
0
17 / 100
points
Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

There's different ways to clear user context like cache and cookies in NeoLoad. In the Actions container, you have an option to simulate a new browser on each iteration.

When enabled, it will remove all the user context between each iteration. That includes variables content that were extracted in the previous iteration.

If you would like to do it through a Javascript, you can call these two methods: "clearCache()" and "clearCookies()".

For example:

context.currentVU.clearCache();

context.currentVU.clearCookies();

For more information, you can look at the NeoLoad documentation here

Did you find this useful ?

No (0)

Yes (2)

100%

100% of users found this answer useful