Stendhal Quest Testing: Difference between revisions

Content deleted Content added
imported>Kymara
imported>Kymara
Line 312:
== Trouble shooting ==
===ChatTestCreator===
;Problem: ArrayIndexOutOfBoundsException
java games.stendhal.tools.test.ChatTestCreator chatlog.txt [chatlogtest.java]
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at games.stendhal.tools.test.ChatTestCreator.main(ChatTestCreator.java:75)
 
*You:Solution: didn't putPut gamechat.log into the Program arguments.
 
; Problem: FileNotFoundException
Exception in thread "main" java.io.FileNotFoundException: gamechat.log (No such file or directory)
 
*You didn't:Solution: copy gamechat.log into the project folder for your eclipse workspace.
 
;Problem: Test doesn't look anything like example, there's no <code>en.step(player</code> lines and only <code>assertEquals</code>
*:Solution: Addadd the character name for the player who made the test to the LineAnalyser file
 
===Running Tests===
;Problem:NullPointerException
java.lang.NullPointerException
at utilities.PlayerTestHelper.equipWithStackableItem(PlayerTestHelper.java:217)
at utilities.PlayerTestHelper.equipWithMoney(PlayerTestHelper.java:190)
 
*You need to:Solution: put the stendhal project folder on your classpath for running tests