I'm a tester and I use random in my automation. In groovy, I use:
import org.apache.commons.lang.RandomStringUtils as RandomStringUtils
WebUI.setText(findTestObject('someWhereToPutNumbers'),RandomStringUtils.randomNumeric(4))
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm a tester and I use random in my automation. In groovy, I use:
import org.apache.commons.lang.RandomStringUtils as RandomStringUtils
WebUI.setText(findTestObject('someWhereToPutNumbers'),RandomStringUtils.randomNumeric(4))