Skip to content

Commit

Permalink
added swing example files and test case
Browse files Browse the repository at this point in the history
  • Loading branch information
krithika-JSPL committed Dec 11, 2018
1 parent b516866 commit f3e4775
Show file tree
Hide file tree
Showing 124 changed files with 6,717 additions and 0 deletions.
Binary file added .breakpoints
Binary file not shown.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
console.log
console.log*
TestReports/
runner.json
25 changes: 25 additions & 0 deletions .history
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
$btns = driver.find_elements(:css, 'button')
driver
driver.current_url
driver.title
$btns = driver.find_elements(:css, 'jbutton')
$btns = driver.find_elements(:css, 'button')
$btns = driver.find_elements(:class, 'javax.swing.JButton')
$btns = driver.find_elements(:type, 'com.sun.swingset3.demos.optionpane.OptionPaneDemo$7')
$btns = driver.find_elements(:class, 'com.sun.swingset3.demos.optionpane.OptionPaneDemo$7')
driver.find_elements(:class, 'javax.swing.Compoenent')
driver.find_elements(:class, 'javax.swing.Component')
$btns = driver.find_elements(:css, 'button')
$btns.length
$btns = driver.find_elements(:css, 'button')
$btns.length
$btns
$btns[1].click
with_window("JOptionPane Demo")
window('JOptionPane Demo')
$btns = driver.find_elements(:css, 'button')
$btns[1].click
$btns = driver.find_elements(:css, 'button')
driver.title
driver.switch_to.window(driver.title)
$btns = driver.find_elements(:css, 'button')
272 changes: 272 additions & 0 deletions Checklists/FG - Interface and Validation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.5.0_16" class="java.beans.XMLDecoder">
<object class="net.sourceforge.marathon.checklist.CheckList">
<void property="checkListItems">
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$Header">
<void property="label">
<string>Fields Order</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>TAB navigates among fields</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Navigation order (usually left -&gt; right and top -&gt; bottom)</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$Header">
<void property="label">
<string>Field Format</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Standard mask exists for fields (Date, Time, Zip code)</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Field accepts single, double quotes.</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$Header">
<void property="label">
<string>Visual</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Fields have tooltips</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$Header">
<void property="label">
<string>Focus</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Default field is focused when a new form is opened</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Check the field with focus after performing an operation (clear fields, include, update, help, etc). </string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$Header">
<void property="label">
<string>Data Population</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>ComboBox populated with relevant values</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>List populated with relevant values</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Table populated with relevant values</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Tree populated with relevant values</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Data is updated when dependent-on fields change values</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$Header">
<void property="label">
<string>Readonly fields</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Unmodifiable fields are protected</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Field state changes to readonly when an operation is performed that warrants such a change</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$Header">
<void property="label">
<string>Data Entry</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Max length for editable fields</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Accepts only valid characters</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Does not allow mandatory fields empty or spaces</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Editable fields are updatable</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Fields respect limits on values</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Lists are ordered</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Data conversion (lower to upper, stripping spaces)</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$Header">
<void property="label">
<string>Interface</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Labels are legible</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Labels do not contain spelling mistakes</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Labels do not use unofficial abbreviations</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Fields use standard naming conventions</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Fields are aligned</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Fields state is reflected in the GUI (e.g readonly fields are disabled)</string>
</void>
</object>
</void>
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$FailureNote">
<void property="label">
<string>Window title matches the functionality</string>
</void>
</object>
</void>
</void>
<void property="description">
<string>Adapted from a checklist shared by:


Frederick Gavinier, CBTS
Certified Brazilian Tester in Software

Software Test Analyst
Sanmina-SCI</string>
</void>
<void property="name">
<string>Interface &amp; Validation</string>
</void>
</object>
</java>
20 changes: 20 additions & 0 deletions Checklists/Notes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.5.0_16" class="java.beans.XMLDecoder">
<object class="net.sourceforge.marathon.checklist.CheckList">
<void property="checkListItems">
<void method="add">
<object class="net.sourceforge.marathon.checklist.CheckList$CommentBox">
<void property="label">
<string>Notes</string>
</void>
</object>
</void>
</void>
<void property="description">
<string>Enter some notes.</string>
</void>
<void property="name">
<string>Notes</string>
</void>
</object>
</java>
Loading

0 comments on commit f3e4775

Please sign in to comment.