Hi, Today I committed a patch to poker-network 2.0 for the following bug: https://gna.org/bugs/?15489 "when moved to another table tournament player doesn't receive PacketPockerTable"
I proposed a tentative fix for: http://drupal-dev.pokersource.info/trac/ticket/161 "error 500 INVALID_GADGET_TOKEN" I tried to reproduce these issues without success: https://gna.org/bugs/?15492 https://gna.org/bugs/?15515 https://gna.org/bugs/?15516 Using the attached windmill test cases: # one windmill instance doing signup - joining a sitngo - and registering/unregistering 100x windmill firefox http://drupal-kez.pokersource.info/drupal6 test=tourney_register_unregister.py tail -f /var/log/poker-network-server.log | grep flushLongPollDeferred # 3 windmill instances doing signup - joining a table - and folding 100x windmill firefox http://drupal-kez.pokersource.info/drupal6 test=fold.py windmill firefox http://drupal-kez.pokersource.info/drupal6 test=fold.py windmill firefox http://drupal-kez.pokersource.info/drupal6 test=fold.py tail -f /var/log/poker-network-server.log | grep Traceback Do you have suggestions where I should commit/maintain these test cases ? - pb_jpoker ? - os_poker ? - jpoker ? - a separate repo ? -- Johan Euphrosine <[email protected]> Development and services around Free Software http://www.aminche.com/
from windmill.authoring import WindmillTestClient
from hashlib import md5
from time import time
def signup(client):
client.click(id=u'edit-mail')
client.type(text=u'[email protected]' % md5(str(time())).hexdigest(), id=u'edit-mail')
client.type(text=u'password', id=u'edit-pass-1')
client.waits.forPageLoad(timeout=u'20000')
client.waits.forElement(xpath=u"//fo...@id='os-poker-sign-up-form']/div/div[4]/div[2]", timeout=u'8000')
client.click(xpath=u"//fo...@id='os-poker-sign-up-form']/div/div[4]/div[2]")
client.waits.forPageLoad(timeout=u'20000')
client.waits.forElement(xpath=u"//d...@id='poker-first-profile']/a", timeout=u'8000')
client.click(xpath=u"//d...@id='poker-first-profile']/a")
client.click(link=u'X')
client.waits.forElement(classname=u'jpoker_table_list_table_empty')
def test_signup():
client = WindmillTestClient(__name__)
signup(client)
# Generated by the windmill services transformer
from windmill.authoring import WindmillTestClient
from signup import signup
def test_os_poker_fold():
client = WindmillTestClient(__name__)
signup(client)
client.click(id=u'play-now-button')
client.waits.forElement(classname=u'jpoker_table')
for i in range(100):
client.click(classname=u'jpoker_ptable_fold')
client.waits.sleep(milliseconds=5000)
from windmill.authoring import WindmillTestClient
from signup import signup
def test_os_poker_tourney_register_unregister():
client = WindmillTestClient(__name__)
signup(client)
client.click(xpath=u"//l...@id='lobby_sng']/a")
client.waits.forElement(classname=u'jpoker_tourney_state_registering')
client.click(classname=u'jpoker_tourney_state_registering')
client.waits.sleep(milliseconds=u'1000')
client.click(id=u"lobby_join_table")
for i in range(100):
client.waits.forElement(value=u'Register')
client.click(value=u'Register')
client.waits.forElement(value=u'Unregister')
client.click(value=u'Unregister')
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Pokersource-users mailing list [email protected] https://mail.gna.org/listinfo/pokersource-users
