Answered question

LDAP(S) performance testing using Neoload

Hello,

I'm trying to test LDAP(S) using Neoload 6.2.0. Correct me if I'm wrong, but Neoload doesn't have predefined LDAP(S) actions. So the first solution I tried is to create my custom actions.

One of the requirements is to maintain the same connexion through all the steps of the test case. So my question is how to pass a variable (in this case LdapContext) from one ActionEngine(execute) to another OR how to set a variable visible from different ActionEngines ?

public SampleResult execute(Context context, List<ActionParameter> parameters) :
The method execute has two parameters one is List<ActionParameter> which contains the values in fields defined in Action that will come from the GUI. The other is Context context, which seems the solution to my problem but, I can't find an implemented method that does what I need.

As a workaround, I called my Java methods (LDAP(S) actions) using JavaScript and maintained the same connexion during all the test case by passing the instance of my class using context.currentVU.put(...) and then getting it using context.variableManager.getValue().

Is there an equivalent to context.currentVU.put() in your Java API?

Thank you in advance.

Salim B.
Salim B.

Salim B.

Level
0
3 / 100
points
Alexis N.
Alexis N.

Alexis N.

Level
2
1255 / 2000
points
Team

Yes there is an equivalent on the Context object.

You can call methods context.getCurrentVirtualUser().get() and context.getCurrentVirtualUser().put() to exchange objets between custom actions.

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful