~aelkner/schooltool/schooltool.gradebook_column_preferences

« back to all changes in this revision

Viewing changes to src/schooltool/requirement/browser/README.txt

  • Committer: Alan Elkner
  • Date: 2009-06-05 00:11:04 UTC
  • Revision ID: aelkner@gmail.com-20090605001104-j5ojo4k16m7rwn8a
created generations package
first evolve script migrates global discrete score systems to site manager

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    >>> manager.getLink('Manage').click()
79
79
    >>> manager.getLink('Score Systems').click()
80
80
 
 
81
We see the score systems that come with schooltool.
 
82
 
 
83
    >>> analyze.printQuery("id('content-body')/form//a", manager.contents)
 
84
    <a href="http://localhost/scoresystems/view.html?name=extended-letter-grade">Extended Letter Grade</a>
 
85
    <a href="http://localhost/scoresystems/view.html?name=letter-grade">Letter Grade</a>
 
86
    <a href="http://localhost/scoresystems/view.html?name=passfail">Pass/Fail</a>
 
87
 
81
88
To add a new score system, the user clicks 'Add Score System'.
82
89
 
83
90
    >>> manager.getLink('Add Score System').click()
86
93
    >>> update_url = base_url + '&UPDATE_SUBMIT'
87
94
    >>> save_url = base_url + '&SAVE'
88
95
 
89
 
We'll send the form values necessary to add a score system called 'Pass/Fail'.
90
 
 
91
 
    >>> first_try = save_url + '&title=Pass/Fail&displayed1=P&value1=1&percent1=60'
92
 
    >>> first_try = first_try + '&displayed2=F&value2=0&percent2=0'
93
 
    >>> manager.open(first_try)
94
 
 
95
96
We'll send the form values necessary to add a score system called 'Good/Bad'.
96
97
 
97
 
    >>> second_try = save_url + '&title=Good/Bad&displayed1=G&value1=1&percent1=60'
98
 
    >>> second_try = second_try + '&displayed2=B&value2=0&percent2=0'
99
 
    >>> manager.open(second_try)
 
98
    >>> url = save_url + '&title=Good/Bad&displayed1=G&value1=1&percent1=60'
 
99
    >>> url = url + '&displayed2=B&value2=0&percent2=0'
 
100
    >>> manager.open(url)
100
101
 
101
102
Now we see the two score systems in the list.
102
103
 
103
104
    >>> analyze.printQuery("id('content-body')/form//a", manager.contents)
 
105
    <a href="http://localhost/scoresystems/view.html?name=extended-letter-grade">Extended Letter Grade</a>
104
106
    <a href="http://localhost/scoresystems/view.html?name=goodbad">Good/Bad</a>
 
107
    <a href="http://localhost/scoresystems/view.html?name=letter-grade">Letter Grade</a>
105
108
    <a href="http://localhost/scoresystems/view.html?name=passfail">Pass/Fail</a>
106
109
 
107
110
Let's hide the 'Pass/Fail' one.
109
112
    >>> hide_url = manager.url + '?form-submitted&hide_passfail'
110
113
    >>> manager.open(hide_url)
111
114
 
112
 
Now there should only be the 'Good/Bad' one.
 
115
Now we won't see it in the list.
113
116
 
114
117
    >>> analyze.printQuery("id('content-body')/form//a", manager.contents)
 
118
    <a href="http://localhost/scoresystems/view.html?name=extended-letter-grade">Extended Letter Grade</a>
115
119
    <a href="http://localhost/scoresystems/view.html?name=goodbad">Good/Bad</a>
 
120
    <a href="http://localhost/scoresystems/view.html?name=letter-grade">Letter Grade</a>
116
121
 
117
122
Let's click on 'Good/Bad' and test it's view.
118
123