signPDF
setTimeout 120000
open /nuxeo/logout
open /nuxeo/login.jsp
type username jdoe
type password password
clickAndWait Submit
verifyTextPresent Default domain
verifyTextPresent jdoe
clickAndWait Link=Workspaces
clickAndWait link=TestWorkspace
clickAndWait link=original.pdf
clickAndWait link=Signature
verifyTextPresent Go to certificate management
pause 2000
clickAndWait Link=Go to certificate management
type certificateForm:firstPassword password
type certificateForm:secondPassword password
clickAndWait //input[@value='Generate Certificate']
verifyTextPresent Your certificate password should be different from your login password
type certificateForm:firstPassword Certificate
type certificateForm:secondPassword Certificate
clickAndWait //input[@value='Generate Certificate']
verifyTextPresent CN=John Doe,
open /nuxeo/logout