TestProject Forum

TestProject Platform => TestProject SDK => Topic started by: nagendra on July 30, 2018, 18:18:32 pm

Title: How to set default value for action @ActionParameter ?
Post by: nagendra on July 30, 2018, 18:18:32 pm
I saw the action addon  example here:
https://github.com/testproject-io/java-sdk-examples/blob/master/Android/Addon/src/main/java/io/testproject/examples/sdk/java/TypeRandomPhone.java

And I would like to know if there is option to set default value.
I did not found how to do it.

It would be nice if you add this option.. something like
@ActionParameter(defaultValue = 10)
public int timeOut;
Title: Re: How to set default value for action @ActionParameter ?
Post by: Marat Strelets on July 31, 2018, 15:26:48 pm
Hello,

At this point default values are not supported for Actions,
but we will consider adding this in the future.

Thanks.