I am trying to derive test scenarios to test the syntax highlighting feature a editor. The java based editor highlights keywords with specific color.
One of the scenario I can think of is to have a list of keywords and paste them in the editor and check for the ones which are not highlighted. Also, other scenario would be to test that words other than the keywords are not highlighted.
If you folks can please suggest a few more then that would help a lot.
It sounds as if you have the basics.
Do you also have a Requirements document that gives you some guidelines?
Here are a few others:
How about exploring ther methods for getting the text into the editor? For example, open a file with a mix of keywords and non-keywords in it, modify a string to change it from a keyword to something else, and vice-versa, etc.
What controls the list of keywords? You may want to test that portion as well, by adding/deleting/modifying words on the list.
Many editors understand keywords within context. For example, you may find a keyword within other characters. Many editors will recognize that this should not be highlighted. And often a quoted string that happens to contain a keyword in it will not be highlighted.
You're definitely on the right track. You can also see how it handles phrases. Will it highlight each individual word or will it attempt to find the phrase? For boundaries, what happens when you type a word that doesn't exist? Will it find a word that has been broken (for instance hyphenated words like high-intensity, where high- is places on the first line and intensity is wrapped)? Will it highlight partial matches (ie if it was looking for extra would it highlight extra in extraordinaty)?
That might be all I've got right now.
9 out of 10 people I prove wrong agree that I'm right. The other person is my wife.