Discussion:
[Freecol-developers] UI Testing for #43
Dong Kim
2016-12-08 21:37:39 UTC
Permalink
Hi again,

For testing improvement request #43, we're having difficulty encountering
the looting panel for capturedGoodsDialog. We've realized that you need to
declare your nation's independence before you encounter these panels, which
we assume will take a substantial amount of gameplay.

Is there perhaps any other way to test this panel other than manually
testing the UI through gameplay (i.e. dev tools or saved games)?

Thank you!
Caleb Williams
2016-12-09 03:29:37 UTC
Permalink
Post by Dong Kim
For testing improvement request #43, we're having difficulty encountering
the looting panel for capturedGoodsDialog.

I've only encountered the CaptureGoodsDialog when attacking ships. In
theory it could effect any Unit (net.sf.freecol.common.model) though it's
only a Carrier with goods in its holds that it really applies to -- this
can only be a ship or a wagon train.
Post by Dong Kim
Is there perhaps any other way to test this panel other than manually
testing the UI through gameplay (i.e. dev tools or saved games)?

I don't think the debug mode will help here. I created a save game with the
player's privateer and a nearby ship to loot from. You'll find this in the
tile (41, 29) area of the map. You can use the file at
https://sourceforge.net/p/freecol/improvement-requests/43/

Thanks,

*Caleb R. Williams*
Michael T. Pope
2016-12-09 05:07:25 UTC
Permalink
On Thu, 8 Dec 2016 21:29:37 -0600
Post by Dong Kim
Post by Dong Kim
For testing improvement request #43, we're having difficulty encountering
the looting panel for capturedGoodsDialog.
I've only encountered the CaptureGoodsDialog when attacking ships.
Caleb is correct, and independence is not required. CaptureGoods should
appear when you win a combat against an enemy ship that is carrying goods,
and there is space on your ship to load them. Go into debug mode, find or
create+change-owner an enemy ship, add some goods to it if it is lacking
(right click menu on the enemy ship tile has an "add goods" option),
create yourself a powerful ship next to it ("add unit" off the same menu),
then save, then all you need is a successful attack (the "step random
number generator" item on the main debug menu is useful there).

Cheers,
Mike Pope

Loading...