Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helios Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Helios Server
Commits
4850e3f3
Commit
4850e3f3
authored
14 years ago
by
Ben Adida
Browse files
Options
Downloads
Patches
Plain Diff
added first selenium test
parent
3934b46e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
selenium/create-election-and-vote
+242
-0
242 additions, 0 deletions
selenium/create-election-and-vote
with
242 additions
and
0 deletions
selenium/create-election-and-vote
0 → 100644
+
242
−
0
View file @
4850e3f3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xml:lang=
"en"
lang=
"en"
>
<head
profile=
"http://selenium-ide.openqa.org/profiles/test-case"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
/>
<link
rel=
"selenium.base"
href=
"http://localhost:8000/"
/>
<title>
create-election-and-vote
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
create-election-and-vote
</td></tr>
</thead><tbody>
<tr>
<td>
open
</td>
<td>
/helios/autologin
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
/
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
link=create election
>
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
id_short_name
</td>
<td>
test1
</td>
</tr>
<tr>
<td>
type
</td>
<td>
id_name
</td>
<td>
test1
</td>
</tr>
<tr>
<td>
type
</td>
<td>
id_description
</td>
<td>
test1
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
next_button
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
link=voters
&
ballots
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
link=switch to open
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
link=back to election
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
link=questions (0)
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
answer_table
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
question
</td>
<td>
w?
</td>
</tr>
<tr>
<td>
type
</td>
<td>
answer_1
</td>
<td>
a
</td>
</tr>
<tr>
<td>
type
</td>
<td>
answer_2
</td>
<td>
b
</td>
</tr>
<tr>
<td>
type
</td>
<td>
answer_3
</td>
<td>
c
</td>
</tr>
<tr>
<td>
click
</td>
<td>
//input[@value='add question']
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
link=back to election
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
link=freeze ballot and open election.
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='freeze!']
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//input[@value='freeze!']
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
link=Vote in this election
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@onclick='BOOTH.show_question(0);']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@onclick='BOOTH.show_question(0);']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
answer_0_0
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//input[@value='Proceed']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//button[@onclick='BOOTH.seal_ballot();']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
proceed_button
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
proceed_button
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//button[@type='submit']
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//button[@type='submit']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=return to election info
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
link=return to election info
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
/helios/autologin
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
/helios/e/test1
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
link=compute encrypted tally
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='compute encrypted tally!']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
//input[@value='compute encrypted tally!']
</td>
<td></td>
</tr>
<tr>
<td>
assertAlert
</td>
<td>
ok, tally has begun
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
link=combine trustee decryptions and release results
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
link=combine trustee decryptions and release results
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
id_body
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
id_body
</td>
<td>
test
</td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
send_button
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td></td>
<td>
This election is complete.
</td>
</tr>
</tbody></table>
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment