Commit 18bc2909 authored by Aneta Steimarova's avatar Aneta Steimarova

#941 Created i-tests for game Shooting range bonus difficulty

parent 8e336818
NewUserScenario
TestScenarioSpecial
TestScenarioHallOfFameRobberyTrophies
TestScenarioHeapOfTrophies
TestGameShootingRangeEasyNoneStar
TestGameRobberyMediumOneStar
TestGameInTheDarknessMedium
TestGameNightWatchMediumNoneStar
TestGamePursuitHardThreeStar
TestGameCrimeSceneHardOneStar
TestGameKidnappingEasyTwoStar
TestGameRunesMediumThreeStar
TestGameProtocolEasyOneStar
TestGameSafeHardNoneStars
TestStatisticsInTheDarkness
TestEncyclopedia
TestProfile
OfficeTestScenario
\ No newline at end of file
TestGameShootingRangeBonusNoneStar
TestGameShootingRangeBonusOneStar
TestGameShootingRangeBonusTwoStar
TestGameShootingRangeBonusThreeStar
\ No newline at end of file
......@@ -133,6 +133,10 @@ import cz.nic.tablexia.testing.games.safe.TestGameSafeMediumNoneStars;
import cz.nic.tablexia.testing.games.safe.TestGameSafeMediumOneStar;
import cz.nic.tablexia.testing.games.safe.TestGameSafeMediumThreeStars;
import cz.nic.tablexia.testing.games.safe.TestGameSafeMediumTwoStars;
import cz.nic.tablexia.testing.games.shooting_range.TestGameShootingRangeBonusNoneStar;
import cz.nic.tablexia.testing.games.shooting_range.TestGameShootingRangeBonusOneStar;
import cz.nic.tablexia.testing.games.shooting_range.TestGameShootingRangeBonusThreeStar;
import cz.nic.tablexia.testing.games.shooting_range.TestGameShootingRangeBonusTwoStar;
import cz.nic.tablexia.testing.games.shooting_range.TestGameShootingRangeEasyNoneStar;
import cz.nic.tablexia.testing.games.shooting_range.TestGameShootingRangeEasyOneStar;
import cz.nic.tablexia.testing.games.shooting_range.TestGameShootingRangeEasyThreeStar;
......@@ -187,6 +191,10 @@ public class TestRunner {
listOfTests.add(TestGameShootingRangeHardOneStar.class);
listOfTests.add(TestGameShootingRangeHardTwoStar.class);
listOfTests.add(TestGameShootingRangeHardThreeStar.class);
listOfTests.add(TestGameShootingRangeBonusNoneStar.class);
listOfTests.add(TestGameShootingRangeBonusOneStar.class);
listOfTests.add(TestGameShootingRangeBonusTwoStar.class);
listOfTests.add(TestGameShootingRangeBonusThreeStar.class);
listOfTests.add(TestGameRobberyEasyNoneStar.class);
listOfTests.add(TestGameRobberyEasyOneStar.class);
listOfTests.add(TestGameRobberyEasyTwoStar.class);
......
......@@ -88,6 +88,7 @@ public class TestGameShootingRange extends AbstractTestGame {
clickAt(incGetSteps() + ". Click at medium difficulty button", GamePageGroup.DIFFICULTY_BUTTON_MEDIUM);
clickAt(incGetSteps() + ". Click at hard difficulty button", GamePageGroup.DIFFICULTY_BUTTON_HARD);
clickAt(incGetSteps() + ". Click at easy difficulty button", GamePageGroup.DIFFICULTY_BUTTON_EASY);
clickAt(incGetSteps() + ". Click at easy difficulty button", GamePageGroup.DIFFICULTY_BUTTON_BONUS);
//setDifficulty
setGameDificulty();
......
package cz.nic.tablexia.testing.games.shooting_range;
import cz.nic.tablexia.Tablexia;
import cz.nic.tablexia.game.AbstractTablexiaGame;
import cz.nic.tablexia.game.difficulty.GameDifficulty;
public class TestGameShootingRangeBonusNoneStar extends TestGameShootingRange {
public TestGameShootingRangeBonusNoneStar(Tablexia tablexia) {
super(tablexia);
difficulty = GameDifficulty.BONUS;
expectedResult = AbstractTablexiaGame.GameResult.NO_STAR;
}
}
package cz.nic.tablexia.testing.games.shooting_range;
import cz.nic.tablexia.Tablexia;
import cz.nic.tablexia.game.AbstractTablexiaGame;
import cz.nic.tablexia.game.difficulty.GameDifficulty;
public class TestGameShootingRangeBonusOneStar extends TestGameShootingRange {
public TestGameShootingRangeBonusOneStar(Tablexia tablexia) {
super(tablexia);
difficulty = GameDifficulty.BONUS;
expectedResult = AbstractTablexiaGame.GameResult.ONE_STAR;
}
}
package cz.nic.tablexia.testing.games.shooting_range;
import cz.nic.tablexia.Tablexia;
import cz.nic.tablexia.game.AbstractTablexiaGame;
import cz.nic.tablexia.game.difficulty.GameDifficulty;
public class TestGameShootingRangeBonusThreeStar extends TestGameShootingRange {
public TestGameShootingRangeBonusThreeStar(Tablexia tablexia) {
super(tablexia);
difficulty = GameDifficulty.BONUS;
expectedResult = AbstractTablexiaGame.GameResult.THREE_STAR;
}
}
package cz.nic.tablexia.testing.games.shooting_range;
import cz.nic.tablexia.Tablexia;
import cz.nic.tablexia.game.AbstractTablexiaGame;
import cz.nic.tablexia.game.difficulty.GameDifficulty;
public class TestGameShootingRangeBonusTwoStar extends TestGameShootingRange {
public TestGameShootingRangeBonusTwoStar(Tablexia tablexia) {
super(tablexia);
difficulty = GameDifficulty.BONUS;
expectedResult = AbstractTablexiaGame.GameResult.TWO_STAR;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment