com.atlassian.jira.webtest.framework.impl.selenium.form
Class DirtyFormCheck

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.framework.impl.selenium.form.DirtyFormCheck

public class DirtyFormCheck
extends SeleniumContextAware

Class that makes dirty form testing easier.

Since:
v4.3

Nested Class Summary
static class DirtyFormCheck.DirtyFormDescriptor
           
static interface DirtyFormCheck.Setup
           
 
Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, context, timeouts
 
Constructor Summary
DirtyFormCheck(SeleniumContext context, String description, DirtyFormCheck.Setup setup, DirtyFormCheck.DirtyFormDescriptor dirtyFormDescriptor)
           
 
Method Summary
 void _assertNotOpen()
           
 void run()
           
 void run(String dirtyFormError)
          Runs a set of standard dirty form checks Needs expanding to include all the checks as described in https://extranet.atlassian.com/display/QA/JIRA+Dev+Checklist+-+Forms
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirtyFormCheck

public DirtyFormCheck(SeleniumContext context,
                      String description,
                      DirtyFormCheck.Setup setup,
                      DirtyFormCheck.DirtyFormDescriptor dirtyFormDescriptor)
Parameters:
context - The Selenium test Context
description - Description of testcase
setup - The steps to perform before invoking the form, use the defult DirtyFormCheck.None for no setup
dirtyFormDescriptor - The submission implementation - eg Link or Form based submission page
Method Detail

run

public void run()
         throws Exception
Throws:
Exception

run

public void run(String dirtyFormError)
         throws Exception
Runs a set of standard dirty form checks Needs expanding to include all the checks as described in https://extranet.atlassian.com/display/QA/JIRA+Dev+Checklist+-+Forms

Parameters:
dirtyFormError - expected error message if the form is dirty
Throws:
Exception

_assertNotOpen

public final void _assertNotOpen()


Copyright © 2002-2013 Atlassian. All Rights Reserved.