예제 #1
0
def test_7(playerId,url):
        #global playerId
        #global url
        global subjectId
        data = {
        "playerId" : playerId,
        "subjectId":subjectId,
        "panels" : [
            [
                [3,1001,3],       #7red
                [3,1001,3],
                [3,1001,3]
            ],
            [
                [3,1002,3],       # 7lan
                [3,1002,3],
                [3,1002,3]
            ],
            [
                [3,1000,3],       # 7yin
                [3,1000,3],
                [3,1000,3]
            ],
            [
                [3,1000,3],       # any 7
                [3,1001,3],
                [3,1002,3]
            ]
        ]
    }
        ret_loaded = get_response.Post_response(url,data)
        print ret_loaded
        return ret_loaded
예제 #2
0
def test_3_wild(playerId,url):
        #global playerId
        #global url
        global subjectId
        data = {
        "playerId" : playerId,
        "subjectId":subjectId,
        "panels" : [
            [
                [3,1101,3],       #3*7gold
                [3,1000,3],
                [3,1001,3]
            ],
            [
                [3,1101,3],       #3*3*7gold
                [3,1000,3],
                [3,1101,3]
            ],
            [
                [3,1101,3],       #3*3*7gold
                [3,1000,3],
                [3,1101,3]
            ],
            [
                [3,1101,3],       #3*3*7red
                [3,1001,3],
                [3,1101,3]
            ]
        ]
    }
        ret_loaded = get_response.Post_response(url,data)
        print ret_loaded
        return ret_loaded
예제 #3
0
def test_2_wild(playerId,url):
        #global playerId
        #global url
        global subjectId
        data = {
        "playerId" : playerId,
        "subjectId":subjectId,
        "panels" : [
            [
                [3,1102,3],       #2*2*red7
                [3,1001,3],
                [3,1102,3]
            ],
            [
                [3,1102,3],       #2*2*bar
                [3,1005,3],
                [3,1102,3]
            ],
            [
                [3,1101,3],       #3*2*red7
                [3,1001,3],
                [3,1102,3]
            ],
            [
                [3,1102,3],       #3*2*2bar
                [3,1004,3],
                [3,1101,3]
            ]
        ]
    }
        ret_loaded = get_response.Post_response(url,data)
        print ret_loaded
        return ret_loaded
예제 #4
0
def test_7_wild(playerId, url):
    #global playerId
    #global url
    global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        subjectId,
        "panels": [
            [
                [3, 1, 3],  #wild 7 10x
                [3, 1000, 3],
                [3, 1, 3],
            ],
            [
                [3, 1, 3],  #wild 7 10x
                [3, 1001, 3],
                [3, 1, 3],
            ],
            [
                [3, 1, 3],  #wild 7 10x
                [3, 1002, 3],
                [3, 1, 3],
            ],
            [
                [3, 1, 3],  #wild 7 10x
                [3, 1003, 3],
                [3, 1, 3],
            ]
        ]
    }
    ret_loaded = get_response.Post_response(url, data)
    return ret_loaded
예제 #5
0
def test_wild_no(playerId,url):
        #global playerId
       # global url
        global subjectId
        data = {
        "playerId" : playerId,
        "subjectId":subjectId,
        "panels" : [
            [
                [3,1001,3],       #until wild
                [3,1,3],
                [3,1001,3]
            ],
            [
                [3,1002,3],       
                [3,1003,3],
                [3,1004,3]
            ],
            [
                [3,1002,3],       
                [3,1003,3],
                [3,1004,3]
            ],
            [
                [3,1002,3],       
                [3,1003,3],
                [3,1004,3]
            ]
        ]
    }
        ret_loaded = get_response.Post_response(url,data)
        print ret_loaded
        return ret_loaded
예제 #6
0
def test_7():
    global playerId
    global url
    global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        subjectId,
        "panels": [
            [
                [3, 1000, 3],  #7 7 7 
                [3, 1000, 3],
                [3, 1000, 3]
            ],
            [
                [3, 1000, 3],  # 7 7 bar 
                [3, 1000, 3],
                [3, 1, 3]
            ],
            [
                [3, 1000, 3],  # 7 wild X
                [3, 1, 3],
                [3, 1, 3]
            ],
            [
                [3, 1000, 3],  # any 7
                [3, 1001, 3],
                [3, 1002, 3]
            ]
        ]
    }
    ret_loaded = get_response.Post_response(url, data)
예제 #7
0
def test_bar():
    global playerId
    global url
    global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        subjectId,
        "panels": [
            [
                [3, 1001, 3],  #3bar
                [3, 1001, 3],
                [3, 1001, 3]
            ],
            [
                [3, 1002, 3],  #2bar
                [3, 1002, 3],
                [3, 1002, 3]
            ],
            [
                [3, 1003, 3],  #bar
                [3, 1003, 3],
                [3, 1003, 3]
            ],
            [
                [3, 1001, 3],  #any bar
                [3, 1002, 3],
                [3, 1003, 3]
            ]
        ]
    }
    ret_loaded = get_response.Post_response(url, data)
예제 #8
0
def test_wild(playerId,url):

        global subjectId
        data = {
        "playerId" : playerId,
        "subjectId":subjectId,
        "panels" : [
            [
                [1000,0,1006],
                [1003,1001,1],
                [1006,1005,1001],
                [1004,1002,1000],
                [1008,0,1003]
            ],
            [
                [1000,1005,1009,1006],   #Magic Circle
                [1,1000,1005,1002],
                [1000,1009,1004,1008],
                [1005,1,1009,2],
                [1009,1004,1001,1009],
                [1009,1,1002,1009]
            ],
            [
                [1002,1005,1009,1006],     #Magic Book
                [1,1000,1005,1002],
                [1000,1009,1002,1008],
                [1005,1,1009,2],
                [1009,1002,1001,1009],
                [1009,1,1002,1009]
            ]
        ]
}
        ret_loaded = get_response.Post_response(url,data)
        return ret_loaded
예제 #9
0
def test_bar(playerId,url):
        #global playerId
        #global url
        global subjectId
        data = {
        "playerId" : playerId,
        "subjectId":subjectId,
        "panels" : [
            [
                [3,1003,3],       #3bar
                [3,1003,3],
                [3,1003,3]
            ],
            [
                [3,1004,3],       #2bar
                [3,1004,3],
                [3,1004,3]
            ],
            [
                [3,1005,3],       #bar
                [3,1005,3],
                [3,1005,3]
            ],
            [
                [3,1003,3],       #any bar
                [3,1004,3],
                [3,1005,3]
            ]
        ]
    }
        ret_loaded = get_response.Post_response(url,data)
        print ret_loaded
        return ret_loaded      
예제 #10
0
def test_777():
        global playerId
        global url
        global subjectId
        data = {
        "playerId" : playerId,
        "subjectId":'41',
        "panels" : [
            [
                [3,1000,3],         #r7r7r7
                [3,1000,3],
                [3,1000,3]
            ],
            [
                [3,1001,3],         #p7p7p7
                [3,1001,3],
                [3,1001,3]
            ],
            [
                [3,1002,3],         #b7b7b7
                [3,1002,3],
                [3,1002,3]
            ],
            [
                [3,1003,3],         #w7w7w7
                [3,1003,3],
                [3,1003,3]
            ]
        ]
}
        ret_loaded = get_response.Post_response(url,data)
        print ret_loaded
예제 #11
0
def test_Rapid_Hit(playerId, url):
    #global playerId
    #global url
    #global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        '33',
        "panels": [
            [
                [1006, 1000, 1008, 6],  #free spin 
                [1008, 1002, 2, 1001],
                [1004, 1001, 2, 1006],
                [1006, 2, 1002, 1008],
                [1006, 1004, 1008, 1007]
            ],
            [
                [1006, 1, 1008, 1001],  #wild  
                [1000, 1004, 1006, 1008],
                [1006, 1003, 1005, 1005],
                [1004, 1001, 1007, 1003],
                [1000, 1007, 1006, 1004]
            ],
            [
                [1007, 6, 1006, 1000],  #9 rapid
                [6, 6, 1007, 1005],
                [1007, 6, 6, 1001],
                [6, 1001, 1008, 6],
                [1007, 6, 6, 1008]
            ],
            [
                [1007, 6, 1006, 1000],  #6 rapid
                [6, 6, 1007, 1005],
                [1007, 6, 6, 1001],
                [6, 1001, 1008, 1006],
                [1007, 1006, 1004, 1008]
            ],
            [
                [1007, 1004, 1006, 1000],  #3 rapid
                [6, 6, 1007, 1005],
                [1007, 1002, 1004, 1001],
                [6, 1001, 1008, 1006],
                [1007, 1006, 1004, 1008]
            ],
            [
                [1006, 1000, 1008, 6],  #no free spin
                [1008, 1002, 1005, 1001],
                [1004, 1001, 2, 1006],
                [1006, 2, 1002, 1008],
                [1006, 1004, 1008, 1007]
            ]
        ]
    }
    ret_loaded = get_response.Post_response(url, data)
    print ret_loaded
    return ret_loaded
예제 #12
0
def test_jackpot():
    global playerId
    global url
    global subjectId
    data = {
        "playerId": playerId,
        "subjectId": '35',
        "panels": [[3, 1003, 3], [3, 1002, 3], [3, 1003, 3]]
    }
    ret_loaded = get_response.Post_response(url, data)
    print ret_loaded
예제 #13
0
def test_7_wild():
    global playerId
    global url
    global subjectId
    data = {
        "playerId": playerId,
        "subjectId": subjectId,
        "panels": [[
            [3, 1, 3],  #wild 7 10x
            [3, 1000, 3],
            [3, 1101, 3]
        ]]
    }
    ret_loaded = get_response.Post_response(url, data)
예제 #14
0
def test_other():
        global playerId
        global url
        global subjectId
        data = {
        "playerId" : playerId,
        "subjectId":'41',
        "panels" : [
            [
                [3,1003,3],         #w7 3bar 3bar
                [3,1004,3],
                [3,1004,3]
            ],
            [
                [3,1003,3],         #w7 3bar 2bar
                [3,1004,3],
                [3,1002,3]
            ],
            [
                [3,1003,3],         #w7 3bar 2bar
                [3,1003,3],
                [3,1006,3]
            ],
            [
                [3,1004,3],         #any bar
                [3,1005,3],
                [3,1006,3]
            ],
            [
                [3,1000,3],         #r7 5x r7
                [3,1,3],
                [3,1000,3]
            ],
            [
                [3,1103,3],         #2x bar bar
                [3,1006,3],
                [3,1006,3]
            ],
            [
                [3,1000,3],         #r7 4x b7
                [3,1101,3],
                [3,1002,3]
            ]
        ]
}
        ret_loaded = get_response.Post_response(url,data)
        print ret_loaded
        #assert ret_loaded[0]['panels'][0]["chips"] == 58000
        #assert_equals(ret_loaded[0]['panels'][0]["chips"] , 0,msg="chips=%s not 0" % (ret_loaded[0]['panels'][0]["chips"]))
        #assert_equals(ret_loaded[0]['freeSpins'][0]["leftFreeSpin"],10,msg="Freespin=%s not 10" % (ret_loaded[0]['freeSpins'][0]["leftFreeSpin"]))
예제 #15
0
def test_other(playerId, url):
    #global playerId
    #global url
    #global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        '41',
        "panels": [
            [
                [3, 1003, 3],  #w7 3bar 3bar
                [3, 1004, 3],
                [3, 1004, 3]
            ],
            [
                [3, 1003, 3],  #w7 3bar 2bar
                [3, 1004, 3],
                [3, 1002, 3]
            ],
            [
                [3, 1003, 3],  #w7 3bar 2bar
                [3, 1003, 3],
                [3, 1006, 3]
            ],
            [
                [3, 1004, 3],  #any bar
                [3, 1005, 3],
                [3, 1006, 3]
            ],
            [
                [3, 1000, 3],  #r7 5x r7
                [3, 1, 3],
                [3, 1000, 3]
            ],
            [
                [3, 1103, 3],  #2x bar bar
                [3, 1006, 3],
                [3, 1006, 3]
            ],
            [
                [3, 1000, 3],  #r7 4x b7
                [3, 1101, 3],
                [3, 1002, 3]
            ]
        ]
    }
    ret_loaded = get_response.Post_response(url, data)
    print ret_loaded
    return ret_loaded
예제 #16
0
def test_wild():
    global playerId
    global url
    global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        '30',
        "panels": [
            [
                [3, 1002, 3],  #5 respin
                [3, 1102, 3],
                [3, 1003, 3]
            ],
            [
                [1001, 3, 1],  #double wild
                [3, 1003, 3],
                [3, 1101, 3]
            ],
            [
                [1, 3, 1002],  #triple wild
                [3, 1, 3],
                [1101, 3, 1003]
            ],
            [
                [3, 1002, 3],  #no respin
                [1103, 3, 1002],
                [1001, 3, 1]
            ],
            [
                [3, 1, 3],  #  3*2*3
                [3, 1101, 3],
                [3, 1, 3]
            ],
            [
                [6, 3, 6],  #jackpot
                [6, 3, 6],
                [6, 3, 6]
            ],
            [
                [3, 1002, 3],  #2 respin
                [3, 1103, 3],
                [1001, 3, 1]
            ]
        ]
    }
    ret_loaded = get_response.Post_response(url, data)
    return ret_loaded
예제 #17
0
def test_blue7():
    global playerId
    global url
    global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        '40',
        "panels": [[
            [3, 1002, 3],  #10 7blue
            [3, 1002, 3],
            [3, 1002, 3],
            [3, 1009, 3]
        ]]
    }
    ret_loaded = get_response.Post_response(url, data)
예제 #18
0
def test_red7():
    global playerId
    global url
    global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        '40',
        "panels": [[
            [3, 1000, 3],  #20 7red
            [3, 1000, 3],
            [3, 1000, 3],
            [3, 1007, 3]
        ]]
    }
    ret_loaded = get_response.Post_response(url, data)
예제 #19
0
def test_7bar_3bar_2bar():
    global playerId
    global url
    global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        '40',
        "panels": [[
            [3, 1003, 3],  #   7bar  3bar  2bar
            [3, 1003, 3],
            [3, 1005, 3],
            [3, 1007, 3]
        ]]
    }
    ret_loaded = get_response.Post_response(url, data)
예제 #20
0
def test_blue7_bar_blue7():
    global playerId
    global url
    global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        '40',
        "panels": [[
            [3, 1002, 3],  #blue7 bar  blue7  2   2X
            [3, 1005, 3],
            [3, 1002, 3],
            [3, 1008, 3]
        ]]
    }
    ret_loaded = get_response.Post_response(url, data)
예제 #21
0
	def excon(self):
		workbook=xlrd.open_workbook('./upload/slotinterface.xlsx')
		sheet1=workbook.sheet_by_name('Sheet1')
		print sheet1.name,sheet1.nrows,sheet1.ncols
		print type(sheet1.nrows)

		for i in range(1,sheet1.nrows):
			id=sheet1.cell(i,0).value
			name=sheet1.cell(i,1).value
			method=sheet1.cell(i,2).value
			url=sheet1.cell(i,3).value
			data=sheet1.cell(i,4).value
			data=str(data)
			print id
			print name
			print method
			print url
			print data
			print type(data)

			if method=='get':
				print "********method is get"
				# getcookie=interface_get_cookie.getcookie("youurl","yourusername","youpwd")
				# cookie=getcookie.login()
				data=list(data)
				print data
				req=interface_request.interface_request(url,data,"")
				req.get_withoutcookie()


			elif method=='post':
				print "********method is post"
				# getcookie=interface_get_cookie.getcookie("youurl","yourusername","youpwd")
				# cookie=getcookie.login()
				#data=json.dumps(data)
				#url="http://slots-team-test-new.tuanguwen.com:7310/SlotServer/tpanel"
				print("hahahaha")
				data=eval(data)
				print data
				result = get_response.Post_response(url,data)
				print result
				

			else:
				print "*****neithor get nor post"
			return "hahaha"
예제 #22
0
def test_free_spin(playerId,url):
        global subjectId
        data = {
        "playerId" : playerId,
        "subjectId":subjectId,
        "panels" : [
            [
                [1001,1002,1001,1004],   #free spin
                [1008,1,1003,1007],
                [2,1006,1006,1006],
                [1003,1003,2,1007],
                [1008,2,1003,1006]
            ]
        ]
        }
        ret_loaded = get_response.Post_response(url,data)
        return ret_loaded
예제 #23
0
def test_blue7_bar_blue7_no():
    global playerId
    global url
    global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        '40',
        "panels": [[
            [3, 1000, 3],  #red7 bar bar 5  20 no spin
            [3, 1004, 3],
            [3, 1004, 3],
            [3, 1009, 3]
        ]]
    }
    ret_loaded = get_response.Post_response(url, data)
예제 #24
0
def test_free_spin(playerId,url):
        global subjectId
        data = {
        "playerId" : playerId,
        "subjectId":subjectId,
        "panels" : [
            [
                [1,2,1,1],                              #free spin
                [1003,2,1008,1005],
                [1,1,2,1009],
                [1008,1007,1006,1003],
                [1105,1104,1103,1102],
                [2,1009,1105,1104]
            ]
        ]
}
        ret_loaded = get_response.Post_response(url,data)
        return ret_loaded
예제 #25
0
def wild5():
        global playerId
        global url
        global subjectId
        data = {
        "playerId" : playerId,
        "subjectId":'33',
        "panels" : [
            [
                [1006,1,1008,1001],       #5wild  
                [1000,1,1006,1008],
                [1006,1,1005,1005],
                [1004,1,1007,1003],
                [1000,1,1006,1004]
            ]
        ]
    }
        ret_loaded = get_response.Post_response(url,data)
예제 #26
0
def test_wild(playerId, url):
    #global playerId
    #global url
    global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        subjectId,
        "panels": [
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1, 3]  #wild wild 1x
            ],
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1, 3]  #wild wild 2x
            ],
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1, 3]  #wild wild 3x
            ],
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1, 3]  #wild wild 7x
            ],
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1, 3]  #wild wild 10x
            ],
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1, 3]  #wild wild wild
            ],
        ]
    }
    ret_loaded = get_response.Post_response(url, data)
    return ret_loaded
예제 #27
0
def test_red7_red7(playerId, url):
    #global playerId
    # global url
    # global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        '40',
        "panels": [[
            [3, 1000, 3],  #2 red7 red7 
            [3, 1000, 3],
            [3, 1006, 3],
            [3, 1007, 3]
        ]]
    }
    ret_loaded = get_response.Post_response(url, data)
    print ret_loaded
    return ret_loaded
예제 #28
0
def test_wild():
    global playerId
    global url
    global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        subjectId,
        "panels": [
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1105, 3]  #wild wild 1x
            ],
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1104, 3]  #wild wild 2x
            ],
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1103, 3]  #wild wild 3x
            ],
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1102, 3]  #wild wild 7x
            ],
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1101, 3]  #wild wild 10x
            ],
            [
                [3, 1, 3],
                [3, 1, 3],
                [3, 1, 3]  #wild wild wild
            ],
        ]
    }
    ret_loaded = get_response.Post_response(url, data)
예제 #29
0
def test_7bar_3bar_2bar(playerId, url):
    # global playerId
    # global url
    # global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        '40',
        "panels": [[
            [3, 1003, 3],  #0.5   7bar  3bar  2bar
            [3, 1004, 3],
            [3, 1005, 3],
            [3, 1010, 3],
        ]]
    }
    ret_loaded = get_response.Post_response(url, data)
    print ret_loaded
    return ret_loaded
예제 #30
0
def test_7bar(playerId, url):
    # global playerId
    #global url
    #global subjectId
    data = {
        "playerId":
        playerId,
        "subjectId":
        '40',
        "panels": [[
            [3, 1003, 3],  #10 7bar
            [3, 1003, 3],
            [3, 1003, 3],
            [3, 1009, 3]
        ]]
    }
    ret_loaded = get_response.Post_response(url, data)
    print ret_loaded
    return ret_loaded