Unanswered question

Custom Actions: How many allowed?

I am using the NeoLoad Community edition prior to the possibility of a full licence purchase.

I have created two custom Actions, say (CA1Action,CA1ActionEngine) and (CA2Action,CA2ActionEngine). I put these in separate JARs: CA1.jar and CA2.jar. I place these into extlib and run up Neoload, but only one of the jars (CA1, say) appears in the Misc. list. If I delete CA1.jar and restart Neoload, then CA2 appears in the Misc. list. If I put both pieces of code (in different packages) into the one jar, the same thing happens, only one of the Custom Actions shows. How can I see more than one Custom Action?

Chris P.
Chris P.

Chris P.

Level
0
15 / 100
points

Answers

christophe M.
christophe M.

christophe M.

Level
3
3783 / 5000
points
Team

Yes you can use several custom Actions. Make sure that getType() and getDisplayName(), returns different values from one action vs the other.

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

There's no limit regarding the number of Custom Actions you can create. However your issue may happen when your two Custom Actions have the same type. CA1Action and CA1ActionEngine should return different values for method getType().

 
For example,
 
public String getType(){
   return "CA1Action";
}
 
and
 
public String getType(){
   return "CA1ActionEngine";
}
Chris P.
Chris P.

Chris P.

Level
0
15 / 100
points

Excellent, thanks, that worked. It would help immensely if there were some example code (on GitHub, for example).