Hpe hrd web dsp - User password change template

Vendor: HPE
Product: HRD Web DSP
Executor: Http

start-at http://[#IP#]:8080/hpdsp_gui/Index.jsp
	
timeout 50000

new-action

log "INICIANDO LOGIN"

fill input[name="userId"] [#USERNAME#]

fill input[name="password"] [#CURRENT_PASSWORD#]

#click input[type="submit"]

jscript $('input[type="submit"]').click()

log "LOGIN FEITO"

new-action

test-location http://[#IP#]:8080/hpdsp_gui/welcome.do

sleep 5

new-action

log "TROCA URL PARA A DE TROCA DE SENHA"

set-location http://[#IP#]:8080/hpdsp_gui/userMgmt.do?method=getUpdateUserPasswordPage

test-location http://[#IP#]:8080/hpdsp_gui/userMgmt.do?method=getUpdateUserPasswordPage

log "ESTÁ NA URL CORRETA"

new-action

log "PREENCHENDO OS CAMPOS DE SENHA"

fill input[name="currentPassword"] [#CURRENT_PASSWORD#]

fill input[name="password"] [#NEW_PASSWORD#]

fill input[name="confirmPassword"] [#NEW_PASSWORD#]

click button[name="buttonName"]

new-action

sleep 3

new-action

test-location http://[#IP#]:8080/hpdsp_gui/login.do?method=logout

new-action

log "INICIANDO LOGIN DE VALIDAÇÃO"

fill input[name="userId"] [#USERNAME#]

fill input[name="password"] [#NEW_PASSWORD#]

jscript $('input[type="submit"]').click()

log "LOGIN FEITO"

sleep 3

new-action

test-location http://[#IP#]:8080/hpdsp_gui/welcome.do

sleep 5