Chapter One
How This Practical Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Paper
Syllabus topic Module 1 and Module 2, with MU's assessment rules for a 2-credit practical course: "Certified Journal is compulsory for appearing at the time of Practical Exam", "Minimum 80% practical are required to be completed.", "Mid – Term Practical Examination 15 marks", "Final Journal: 5 marks", and the programme's "Individual Passing in Internal and External Examination".
Aim
To know, before writing a single test, exactly how this paper is marked, what has to be in the journal, what the two hours in the examination hall contain, and what it takes to pass.
Why this chapter comes first
Every other chapter in this book teaches you to do something: build a Selenium IDE suite, write a WebDriver script, configure Jenkins, load a server with JMeter. This one tells you what the marks are for.
It comes first because students lose marks on a practical paper without making a single mistake in a test. Three of MU's rules are about paperwork and attendance at the machine, and one of them can stop you from sitting the examination at all. Read this chapter once now and once again a week before the practical examination.
What this paper is
Software Testing and Quality Assurance Practical is a Major Elective paper of Semester 5 of the B.Sc. (Computer Science). In MU's own words its Type is Practical: there is no written theory examination for this paper. It carries 2 credits, MU allots 60 hours of laboratory work to it, and it is marked out of 50.
"Elective" means you chose it. MU's Semester 5 structure prints the electives as "any one": either Software Testing and Quality Assurance with this practical, or Wireless and Sensor Networks with its own practical. The theory paper and this practical are two separate papers with separate marks. This book is the practical. It recalls theory only where an exercise needs it.
The paper has two modules of thirty hours each, and each module is ten exercises. Module 1 runs from Selenium IDE to WebDriver scripts that read tables, lists and pages. Module 2 runs from checkboxes and file uploads to TestNG, Jenkins, Selenium Grid, JMeter and Bugzilla.
The paper in one table
| Marks | ||
|---|---|---|
| Internal | Mid-term practical examination | 15 |
| Internal | Final journal | 5 |
| External | Q.1, a practical question on Module 1 | 15 |
| External | Q.2, a practical question on Module 2 | 15 |
| Total | 50 |
The external examination runs for two hours and carries 30 of the 50 marks. The other 20 are internal and are decided during the semester, before you walk into the hall.
What it takes to pass
The programme's own particulars print two lines that matter here: "Individual Passing in Internal and External Examination", and a standard of passing of "40% in each component".
So there are two separate passes, not one:
| Component | Out of | 40 per cent of it |
|---|---|---|
| Internal | 20 | 8 |
| External | 30 | 12 |
A student who scores 20 out of 20 internally and 10 out of 30 in the practical examination has 30 out of 50, which looks like a pass, and has still failed the external component. A strong journal cannot carry a weak examination, and a strong examination cannot carry a missing journal.
How This Practical Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Paper
The two rules that can stop you sitting the paper
"Certified Journal is compulsory for appearing at the time of Practical Exam." Those are MU's words. A journal that has not been signed by your teacher is not a certified journal. If you arrive for the practical examination without one, no amount of skill with Selenium will get you into the hall.
"Minimum 80% practical are required to be completed." There are twenty practicals in this paper, ten in each module. Eighty per cent of twenty is sixteen. So at least sixteen of the twenty have to be done, written up and signed.
Sixteen is a floor, not a target. Q.1 is set on Module 1 and Q.2 on Module 2, and nobody tells you in advance which exercise either will be. A student who has skipped four practicals has skipped four of the twenty things the examiner chooses from. Do all twenty.
The internal marks
Mid-term practical examination, 15 marks. A practical test during the semester, at a machine, on the practicals done so far. Treat it as a rehearsal of the final paper: same kind of question, same need to show the script, the run and the result.
Final journal, 5 marks. The journal you hand in at the end, complete and certified. Five marks is small, but the journal is also the document that decides whether you may sit the external examination at all, so its real weight is much larger than five.
What "completed" means for one practical
A practical is complete when your journal, for that practical, contains all of this:
- The practical number and its title, in MU's own words.
- Aim. One or two lines saying what the exercise is for.
- Tool. MU prints a tool for every exercise: Selenium IDE, Selenium WebDriver, Apache POI, TestNG, Jenkins, JMeter, Bugzilla. Name it, with its version.
- Theory. What you need to know to do it. Short: this is a practical journal, not a theory answer.
- The application or page under test. Which page, which fields, which behaviour.
- Test cases or procedure. The steps, numbered, or the test cases in a table.
- The script, the test suite, or the configuration, written out.
- The output: the run, exactly as the tool printed it, or the test result.
- Observations. The counts, the pass and fail figures, the comparison, the timings. This is the part most students leave out and the part the examiner reads first.
- Conclusion. One or two lines saying what the run showed.
- The date and your teacher's signature.
How This Practical Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Paper
Every chapter of this book ends with a section called For the journal that says what the write-up for that practical has to contain.
What a testing practical adds
A testing practical has one thing a programming practical does not: an expected result. A test is a comparison between what should happen and what did happen. A script that clicks through a page and prints nothing has tested nothing, however much it did.
So in every write-up, and in every answer in the hall, say what you expected before you show what you got. "Expected: the welcome message reads Welcome, Asha Patil. Actual: it does. Result: pass." That one habit is most of what separates a testing answer from a programming answer.
The two-hour paper: how to spend the time
Two hours, two questions, fifteen marks each. That is an hour a question, and the two questions come from two different modules. One might be a Selenium IDE suite or a WebDriver script on a web table; the other might be a TestNG suite, a JMeter test plan or a Bugzilla defect report.
A working plan:
| Minutes | What you are doing |
|---|---|
| 0 to 5 | Read both questions. Decide which one you are surer of. |
| 5 to 10 | Write the aim, the tool and the test cases for the first question on paper. |
| 10 to 45 | Build the test or the script, run it, fix it, and get a result. |
| 45 to 55 | Write the output, the observations and the conclusion into the answer. |
| 55 to 105 | The same for the second question. |
| 105 to 120 | Check both: is the output written down, are the observations there, is the conclusion there. |
Start with the question you are surer of. A test that runs and is written up completely is worth more than two half-finished ones.
Never leave the output blank. If the script will not run, write down the exact error the tool gave, say what you think it means, and move on. Testers read error messages for a living; an honest error with a sentence of diagnosis reads far better than an empty page. Chapter six, which teaches WebDriver from zero, produces the errors a beginner meets first on purpose, so that you recognise them in the hall.
What the examiner is actually looking at
The examiner has fifteen marks for one practical question. A fair division, and the one this book is written to satisfy, is roughly this:
| Part | Weight |
|---|---|
| The test or script is correct and runs | high |
| The result is present and matches what was run | high |
| Expected against actual stated, with a pass or fail | high |
| The observations: counts, timings, comparisons | medium |
| Aim, tool and procedure written out | medium |
| You can explain what your own test did | medium |
How This Practical Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Paper
The last line is not a separate viva: this paper prints no viva component, and all fifteen marks belong to the practical question. But an examiner standing at your machine will ask about what is on your screen, and your answer is part of how the fifteen marks are decided. Every chapter therefore ends with Questions you must be able to answer, and they are the questions asked at a machine: what does this locator find, why this wait, what happens if I change this value.
The laboratory this book uses
Every exercise needs something to test. MU's own wording says "a given web application" and "a specified web page", which means your college may give you its own. This book cannot know which one, so it brings its own: a small practice web application called the Practice Portal, and a second small site called the City Library, both set up in the next chapter. Every page they contain is printed in the chapter that tests it, and every program in the book was run against them.
If your college gives you a different site, nothing changes except the address and the locators, and each chapter says where those go.
A warning about copying
Twenty students in one laboratory, one internet, and the same twenty practicals. It is obvious to an examiner when four journals carry the same script with the same variable names and the same comment in the same place, and just as obvious when the student in front of them cannot say what one line of it does.
Write the scripts. Run them. Break one on purpose and read what the error says. That is what makes the questions at the machine easy, and it is the only preparation for this paper that works.
The shape of every chapter after this one
Each of the twenty practicals gets a chapter, in MU's printed order, laid out the same way so that you can read it straight into your journal:
- Aim. MU's own words for the exercise.
- What you need to know before you start. The theory, cut to what this exercise needs.
- The page under test. The part of the practice site the exercise works on, printed in full.
- The procedure, step by step.
- The script or the suite, complete, and its real output.
- Observations, filled in from the run.
- Result. What the run showed.
- Where marks are lost.
- For the journal.
- Quick revision. Eight or ten lines for the day before.
- Questions you must be able to answer.
Result
The assessment of this paper was recorded: 20 internal marks, a mid-term practical examination for 15 and the final journal for 5; a Semester End Practical Examination of two hours for 30 marks, one practical question on each module for 15 marks each; a certified journal compulsory for appearing; at least sixteen of the twenty practicals completed; and separate passing, 8 of 20 internal and 12 of 30 external.
How This Practical Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Paper
Where marks are lost
An uncertified journal. Get each practical signed in the week you do it, not in the week before the examination.
Fewer than sixteen practicals. Count them. Twenty minus four is the line, and it is a hard line.
No expected result. A test with no expected result is a demonstration, not a test.
No observations. Half the exercises in this paper ask you to count, compare or analyse something. A script that runs but reports no figure has done half the exercise.
Output not in the journal. The script is not the practical. The script plus its run plus what you concluded is the practical.
Spending ninety minutes on one question. Two questions, fifteen marks each. Half the paper is in the other module.
For the journal
This chapter is not one of the twenty practicals and does not go in the journal. Use it as the index page of your practical file: write out the list of twenty practicals from MU's syllabus, tick each one when it is signed, and count the ticks.
Quick revision
- 50 marks: 20 internal, 30 external. Type: Practical. No theory examination for this paper.
- Internal 20: mid-term practical examination 15, final journal 5.
- External 30: two hours, Q.1 on Module 1 for 15, Q.2 on Module 2 for 15.
- Passing is separate: 40 per cent of each, which is 8 of 20 and 12 of 30.
- Certified journal compulsory for appearing at the practical examination.
- Minimum 80 per cent of the practicals, which is sixteen of twenty.
- 2 credits, 60 hours, thirty hours a module, ten exercises a module.
- A Major Elective: chosen with its theory paper, against Wireless and Sensor Networks.
- No separate viva marks are printed for this paper.
- Every test states its expected result before its actual result.
Questions you must be able to answer
1. How many marks is this paper out of, and how are they split? Fifty. Twenty internal, a mid-term practical examination for 15 and the final journal for 5, and thirty external in a two-hour practical examination.
2. You score 19 internal and 11 external. Have you passed? No. Passing is individual in each component at 40 per cent. Nineteen out of twenty clears the internal line of 8, but eleven out of thirty is below the external line of 12.
How This Practical Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Paper
3. How many practicals must be completed? At least eighty per cent, which is sixteen of the twenty MU prints.
4. What happens if your journal is not certified? MU's rule is that a certified journal is compulsory for appearing at the practical examination.
5. What does "elective" mean for this paper? It was chosen: MU offers Software Testing and Quality Assurance with this practical, or Wireless and Sensor Networks with its practical, and a student takes one pair.
6. Is there a viva in this paper? No viva component is printed. All fifteen marks of each question belong to the practical, although the examiner's questions about your screen help decide them.
7. What does a testing write-up need that a programming write-up does not? An expected result for every check, stated before the actual result, and a pass or fail.
8. Your script will not run and ten minutes are left. What do you write? The aim, the tool, the test cases, the script as far as you have it, the exact error message, and one sentence saying what you think the error means. Never an empty output.