diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-27 23:07:38 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-27 23:07:38 +0000 |
| commit | 9b615503ced29ee4a421308d3041ad7bf70e2881 (patch) | |
| tree | cd53979d86ea0786ab5bd05ba3800bd1b68e11e2 /dbTests/testingDocs.txt | |
| parent | 76d2ef0c64911b449d206df7f206a0d0548266e0 (diff) | |
| parent | ceba1e6492485dba09ef2989a61c090480543072 (diff) | |
Merge branch 'master' of https://github.com/HumairAK/solutions_repo
Diffstat (limited to 'dbTests/testingDocs.txt')
| -rw-r--r-- | dbTests/testingDocs.txt | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dbTests/testingDocs.txt b/dbTests/testingDocs.txt new file mode 100644 index 0000000..cb1290b --- /dev/null +++ b/dbTests/testingDocs.txt @@ -0,0 +1,53 @@ +CREDIT TO: +http://www.json-generator.com/ + +*************************************** +User template: + +[ + { + 'repeat(50, 50)': { + serial: '{{index(1)}}', + name: { + first: '{{firstName()}}', + last: '{{surname()}}' + }, + user_name: function () { + return ('username' + this.serial); + }, + password: '{{objectId()}}', + phone: '+1 {{phone()}}', + email: function () { + // Email tag is deprecated, because now you can produce an email as simple as this: + return (this.name.first + '.' + this.name.last + '@' + this.name.first + this.name.last + '.com'); + } + } + } +] + +*************************************** +Exam template: + +[ + { + 'repeat(50, 50)': { + id: '{{index(1)}}' + serial: '{{integer(300, 325)}}', + course_code: function () { + return ('CSC' + this.serial); + }, + year: '{{integer(2012,2016)}}', + term: '{{random("fall", "winter", "summer")}}', + type: '{{random("final", "midterm")}}', + instructors: ['{{firstName()}} {{surname()}}', + '{{firstName()}} {{surname()}}'], + page_count: '{{integer(10,20)}}', + questions_count: function () { + return (this.page_count); + }, + uploaded_by: 'admin0' + } + } +] + +*************************************
\ No newline at end of file |
