We will start and test version 1 of the app, clicking on the blue icon
on two smartphones, one on the left, 2nd on the right.
The current vote appears but we will choose another one.
We will click on the admin button. For the moment it is not locked
but the routine is already there to implement a password.
We will select a question, for example the question on animals.
We go back to the student screen by posting this new question
and we see the result of previous votes on this question.
We want to add a vote, let’s choose the cat.
the umber of votes on the cat is 5 for now.
and after the vote we see it displayed as 6 on the left phone
and it also changes to 6 on the right.
We can now go to the admin or teacher’s side
and ask for display of the right answer,
We do this by clicking on the "show answer" button.
Display of votes is updated with correct answer in green.
We can change the question again,
for example the earth-moon distance
We see that when we post this question this poll question appears on the phone
where we will then vote 380 000 km
OK I'm doing this vote.
and on the other phone left Let’s vote 38,000 km.
I vote, and OK it works.
Now what I can try with this version 1
is to make 2 votes at the same time from the 2 phones
I will do this by clicking on the phones
and will select for 3800 km on the left phone
and 3,800,000 km on the right one.
What we should normally see
is that votes for 3,800 and 3,800,000 go up to 1
So let’s vote: 3, 2, 1, Go : I vote
What happened here is that the 2 votes overlapped
and only one has been taken into account, in this case 3,800 km
So we see that this version 1 does not work when votes overlap, And a vote is lost.
Last point I whish to look at, with this version, is a function that will be improved in version 2
That's when we change the question, for example we put 45 000 km here
and we press the pencil to update,
we see that the question about the earth-moon distance has been changed
and we see on the right device that distance has also been updated
Since the list of accepted answers has changed, vote count has been reset.
OK That's all for version 1 where we saw that
Several votes in a short time, from different phones,
can lead to loss of information : This App is not yet a reliable a poll App!
We will now test the 2nd version of the App, which handles concurrent updates
or simultaneous updates from different places
On the first phone, I will select the 38,000 km option.
and on second I will select the 380,000 km option
and I will vote at the same time on both. 3 2 1 0
I see that both have been counted in red and green,
corresponding to the 2 votes I did.
May be I can test again, for example choosing 3 800 km on the right
and 3 800 000 km on the left
and vote again : 3 2 1 0
Here again we have a vote count that is correct. This was not the case with version 1.
Other improvements made to version 2 are minor.
In the question update mode, when we click on the pencil or new button
we switch to edit mode and can make changes, then save or cancel.
We need to be in this edit mode to change values. Otherwise, they are locked for safety.
You need to go through the "new" or "update" button.
Clicking the "new" will set question variables to empty values, including for the tag.
Do not forget to update the tag. If empty, validation will be refused.