It's UWAweek 47

help5501

This forum is provided to promote discussion amongst students enrolled in CITS5501 Software Testing and Quality Assurance. If posting a question, it's suggested you check first whether your question is answered in the unit Frequently Asked Questions (FAQ) list, and use the search box (on the right) to see if an answer to your question has already been posted.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Note that any posts must comply with the UWA Code of Conduct and the UWA Academic Conduct Policy. That means you should (a) treat everyone with respect and courtesy, and (b) not post your solutions to an assessment that's in progress.

If asking a programming question, it's recommended you read How do I ask a good question? If reporting or troubleshooting a bug in software used in the unit, it's recommend you read How to report bugs effectively.
Displaying selected article
Showing 1 of 135 articles.
Currently 3 other people reading this forum.


 UWA week 42 (2nd semester, week 12) ↓
SVG not supported

Login to reply

👍?
helpful
12:32pm Mon 14th Oct, Arran S.

"Gihad Coorey" [email protected] wrote:

Not OP or Arran but I don't think this kind of partitioning is relevant to testing the LightingCommand constructor specifically. Since the LightingCommand constructor takes Location and LightSource objects as parameters, it is a precondition of the constructor that the objects be validly constructed. I feel like partitioning the fields in this way is really testing the constructors for the Location and LightSource objects, rather than the LightingCommand constructor. So I think what OP and Arran have arrived at makes the most sense - one partition with 2 test cases.

Hi Gihad,

Yes, if we're testing some method (or constructor) myMethod that takes in some reference type MyClass, then we can assume that any instances of MyClass are validly constructed – if they aren't, then either there's a bug in the constructor for MyClass (which would be caught in other tests), or a bug in the Java runtime (usually unlikely, but possible).

cheers

Arran

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy