You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generating tests for #5 programmatically would be tedious and time consuming.
Implementation sketch
Perhaps a component could be coded into Phoenix which when enabled would log mouse and keyboard events from a java.awt.EventQueue and convert them to a format suitable for execution by #5 implementation. Maybe a custom EventQueue could be extented with overridden dispatchEvent method that does logging prior to calling super.dispatchEvent.so ftw
Estimated work
Difficulty: moderate
Size: small
A bash/awk script to modify event coordinates in input log files.
#!/bin/bash
# moves y-coord of all "Do Combat"/"Combat Done" JButton events down by 13 in all test input files
INPUT_DIR="input"
TMP_FILE=$(mktemp)
cd $INPUT_DIR
FILES=$(ls *.txt)
for FILE in $FILES
do
mv $FILE $TMP_FILE
cat $TMP_FILE | awk '/#javax.swing.JButton=Do Combat|#javax.swing.JButton=Combat Done/ { $7 = $7 + 13 }; { print }' > $FILE
done
The text was updated successfully, but these errors were encountered:
Collaborative task 2
Automated test generation
Prerequisite task: #5
Motivation
Generating tests for #5 programmatically would be tedious and time consuming.
Implementation sketch
Perhaps a component could be coded into Phoenix which when enabled would log mouse and keyboard events from a java.awt.EventQueue and convert them to a format suitable for execution by #5 implementation.
Maybe a custom EventQueue could be extented with overridden dispatchEvent method that does logging prior to calling super.dispatchEvent.so ftwEstimated work
A bash/awk script to modify event coordinates in input log files.
The text was updated successfully, but these errors were encountered: