File tree Expand file tree Collapse file tree 5 files changed +100
-2
lines changed
Expand file tree Collapse file tree 5 files changed +100
-2
lines changed Original file line number Diff line number Diff line change 1+ # Java and Intellij specific
12.idea
23* .iml
3- target
4+ target
5+ # ignore the archived source code
6+ * .zip
Original file line number Diff line number Diff line change 1- # GoogleHashCode2017
1+ # GoogleHashCode2017
2+ ![ google hash code logo] ( ./documentation/logo.png )
3+
24##Pizza
35Practice problem for the Google HashCode 2017
46
@@ -15,3 +17,20 @@ To build and run the application execute:
1517
1618 mvn clean install
1719 mvn exec: java -Dexec.mainClass="com.google.hashcode.App"
20+
21+ ##Submit task automation
22+ Google provides an online mechanism to check the task results. It requires:
23+ * archived source code
24+ * at least one output file
25+
26+ To zip the source code execute :
27+
28+ ./zipSourceCode.sh
29+
30+ To automate interaction with online submission can be used [ SeleniumIDE] ( https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/ )
31+ with a firefox browser.
32+ * login to the [ submission page] ( https://hashcodejudge.withgoogle.com/#/rounds/6553823069863936/submissions/ )
33+ * setup selenium test suite(submitResultsViaSelenium) according to yours file system
34+ * execute the test case and see scores on web
35+
36+
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3+ <html xmlns =" http://www.w3.org/1999/xhtml" xml : lang =" en" lang =" en" >
4+ <head profile =" http://selenium-ide.openqa.org/profiles/test-case" >
5+ <meta http-equiv =" Content-Type" content =" text/html; charset=UTF-8" />
6+ <link rel =" selenium.base" href =" https://hashcodejudge.withgoogle.com/" />
7+ <title >submitResults</title >
8+ </head >
9+ <body >
10+ <table cellpadding =" 1" cellspacing =" 1" border =" 1" >
11+ <thead >
12+ <tr ><td rowspan =" 1" colspan =" 3" >submitResults</td ></tr >
13+ </thead ><tbody >
14+ <tr >
15+ <td >type</td >
16+ <td >//input[@type=" file" ][1]</td >
17+ <td >/Users/greg/GIT/GoogleHashCode2017/googleHashCode_Pizza.zip</td >
18+ </tr >
19+ <tr >
20+ <td >pause</td >
21+ <td >5000</td >
22+ <td ></td >
23+ </tr >
24+ <tr >
25+ <td >type</td >
26+ <td >//input[@type=" file" ][1]</td >
27+ <td >/Users/greg/GIT/GoogleHashCode2017/outputDataSet/example.txt</td >
28+ </tr >
29+ <tr >
30+ <td >pause</td >
31+ <td >2000</td >
32+ <td ></td >
33+ </tr >
34+ <tr >
35+ <td >type</td >
36+ <td >//input[@type=" file" ][1]</td >
37+ <td >/Users/greg/GIT/GoogleHashCode2017/outputDataSet/example.txt</td >
38+ </tr >
39+ <tr >
40+ <td >pause</td >
41+ <td >2000</td >
42+ <td ></td >
43+ </tr >
44+ <tr >
45+ <td >type</td >
46+ <td >//input[@type=" file" ][1]</td >
47+ <td >/Users/greg/GIT/GoogleHashCode2017/outputDataSet/example.txt</td >
48+ </tr >
49+ <tr >
50+ <td >pause</td >
51+ <td >2000</td >
52+ <td ></td >
53+ </tr >
54+ <tr >
55+ <td >type</td >
56+ <td >//input[@type=" file" ][1]</td >
57+ <td >/Users/greg/GIT/GoogleHashCode2017/outputDataSet/example.txt</td >
58+ </tr >
59+ <tr >
60+ <td >pause</td >
61+ <td >2000</td >
62+ <td ></td >
63+ </tr >
64+ <tr >
65+ <td >click</td >
66+ <td >//md-card[2]/md-card-actions/button[2]</td >
67+ <td ></td >
68+ </tr >
69+ </tbody ></table >
70+ </body >
71+ </html >
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # removes an existing archive
3+ rm googleHashCode_Pizza.*
4+ # zip all the project code
5+ zip -r googleHashCode_Pizza .
You can’t perform that action at this time.
0 commit comments