Ejemplo n.º 1
0
def appView_IOS():
    bb = winretailsaler_IOS.appsalerInformation_IOS(Commonvariable.PORT)
    bb.saler_startapp_ios(saler[4], saler[5])
    bb.salerView(saler[50], saler[4])
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    cc.dealerView(saler[51], dealer[4])
def appjxsOrdersousuo_IOS():
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    cc.dealerjxsOrdersousuo_ios(saler[38])


# cc = winretaildealer_IOS.appdealerInformation_IOS("http://localhost:8100")
# cc.dealer_startapp_ios("14778786566","aa248163")
# cc.dealerjxsOrdersousuo_ios(u"自动化名称3")
Ejemplo n.º 3
0
def appStoreManage_IOS():
    cc = winretaildealer_IOS.appdealerInformation_IOS("http://localhost:8100")
    cc.dealer_startapp_ios("14778786566", "aa248163")
    cc.dealerStoreManage("自动化名称我的")


# #人员管理
# cc = winretaildealer_IOS.appdealerInformation_IOS("http://localhost:8100")
# cc.dealer_startapp_ios("14778786566","aa248163")
# cc.dealerStoreManage("3")
def appjxs_RoleManage_IOS():
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    time.sleep(2)
    cc.dealerRoleManage_ios(saler[15], saler[16], dealer[4], dealer[5])


# #人员管理
# cc = winretaildealer_IOS.appdealerInformation_IOS("http://localhost:8100")
# cc.dealer_startapp_ios("14778786566","aa248163")
# time.sleep(2)
# cc.dealerRoleManage_ios(u"新增jxs人员角色","14778786563","14778786566","aa248163")
Ejemplo n.º 5
0
def appJxsOneLogin_IOS():
    aa = wangye_IOS.wangyeInfomation()
    aa.wangyeLogin(saler[1], saler[2], saler[3])
    #
    # 经销商名称,姓名,账号,密码,经度,纬度,最小启动金额,联系电话,地址;查询省市,查询居委会,
    poiName, nickName, mobile, password, longitude, latitude, minOrderAmount, telephone, address, provinceName, villageName = \
        aa.dealerJxsOneLogin(saler[22], saler[23], saler[24], saler[25], saler[26], saler[27], saler[28],
                             saler[29], saler[30], saler[31], saler[32])
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    print(saler[24])
    cc.dealer_startapp_ios(saler[24], saler[25])
    cc.dealerjxsOnelogin_ios(saler[33], saler[34], saler[35], saler[36],
                             saler[37])
    excelInit_ios.excelUpdate(saler[24])
Ejemplo n.º 6
0
def appJxsPower():
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    cc.dealer_startapp_ios("14778786566", "aa248163")  # jxs
    cc.dealerJxsPower_ios("jxs")
    cc.dealerOfflogin_ios()
    cc.dealer_startapp_ios("14528745875", "14528745875")  #送货司机
    cc.dealerJxsPower_ios("shsj")
    cc.dealerOfflogin_ios()
    cc.dealer_startapp_ios("14667764667", "14667764667")  # 车销司机
    cc.dealerJxsPower_ios("chsj")
    cc.dealerOfflogin_ios()
    cc.dealer_startapp_ios("14697876648", "14697876648")  # 首单员
    cc.dealerJxsPower_ios("sdy")
    cc.dealerOfflogin_ios()
Ejemplo n.º 7
0
def appChangeOrder_IOS():
    bb = winretailsaler_IOS.appsalerInformation_IOS(Commonvariable.PORT)
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    bb.saler_startapp_ios(saler[4], saler[5])
    bb.salerEnterstorehouse_ios()  # 进入仓库
    time.sleep(2)
    sumck = bb.salerAddShopsTogwc_ios()  # 加入到购物车
    time.sleep(2)
    sumgwc = bb.salerAddShopsToydd(sumck)  # 加入到预订单
    time.sleep(2)
    sumydd = bb.saleraddyddToorder(sumgwc, Commonvariable.SALER_ISSELECT_a)  # 下单是否选择优惠券
    # 确认订单检查订单
    # orderliebiao = bb.salerEnter_ios(u"全部订单")
    # time.sleep(3)
    cc.dealer_startapp_ios(dealer[4],dealer[5])
    dealerprice = cc.dealerAlterOrder()
Ejemplo n.º 8
0
def appHuiliao_IOS():
    bb = winretailsaler_IOS.appsalerInformation_IOS(Commonvariable.PORT)
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    #
    bb.saler_startapp_ios(saler[4], saler[5])
    startNum = bb.salerHuiliao_ios(saler[13], saler[14])
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    cc.dealerHuiliao_ios(startNum)


# bb = winretailsaler_IOS.appsalerInformation_IOS("http://localhost:8100")
# cc = winretaildealer_IOS.appdealerInformation_IOS("http://localhost:8100")
# #
# bb.saler_startapp_ios(saler[4],saler[5])
# startNum = bb.salerHuiliao_ios(u"王斌",u"自动化消息")
# cc.dealer_startapp_ios(dealer[4],dealer[5])
# cc.dealerHuiliao_ios(startNum)
Ejemplo n.º 9
0
def appClosedOrder():
    bb = winretailsaler_IOS.appsalerInformation_IOS(Commonvariable.PORT)
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    bb.saler_startapp_ios(saler[4], saler[5])
    bb.salerEnterstorehouse_ios()  # 进入仓库
    time.sleep(2)
    sumck = bb.salerAddShopsTogwc_ios()  # 加入到购物车
    time.sleep(2)
    sumgwc = bb.salerAddShopsToydd(sumck)  # 加入到预订单
    time.sleep(2)

    sumydd = bb.saleraddyddToorder(
        sumgwc, Commonvariable.SALER_ISSELECT_a)  # 下单是否选择优惠券
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    cc.dealerOrderinfo_ios(u"待确认")
    time.sleep(3)
    cc.dealerbackone_ios()
    cc.dealerOrderinfo_ios(u"待发货")
    cc.dealerbackone_ios()
    cc.dealerOrderinfo_ios(u"关闭订单")
Ejemplo n.º 10
0
def appOrdersCannel_IOS():
    # 取消订单
    bb = winretailsaler_IOS.appsalerInformation_IOS(Commonvariable.PORT)
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    bb.saler_startapp_ios(saler[4], saler[5])
    bb.salerEnterstorehouse_ios()  # 进入仓库
    time.sleep(2)
    sumck = bb.salerAddShopsTogwc_ios()  # 加入到购物车
    time.sleep(2)
    sumgwc = bb.salerAddShopsToydd(sumck)  # 加入到预订单
    time.sleep(2)
    sumydd = bb.saleraddyddToorder(
        sumgwc, Commonvariable.SALER_ISSELECT_a)  # 下单是否选择优惠券
    # 确认订单检查订单
    bb.salerbackone_ios()
    bb.salerbackone_ios()
    orderliebiao = bb.salerEnter_ios(u"待确认")
    time.sleep(3)
    # 门店取消订单:
    bb.salerCancleOrder(u"门店取消订单")
    # 再来一单-jxs取消订单
    bb.salerOrderAgain()
Ejemplo n.º 11
0
def appOrderStatuscheck_IOS():
    bb = winretailsaler_IOS.appsalerInformation_IOS(Commonvariable.PORT)
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    bb.saler_startapp_ios(saler[4], saler[5])
    bb.salerEnterstorehouse_ios()  # 进入仓库
    time.sleep(2)
    sumck = bb.salerAddShopsTogwc_ios()  # 加入到购物车
    time.sleep(2)
    sumgwc = bb.salerAddShopsToydd(sumck)  # 加入到预订单
    time.sleep(2)
    sumydd = bb.saleraddyddToorder(sumgwc, Commonvariable.SALER_ISSELECT_a)  # 下单是否选择优惠券
    # 确认订单检查订单
    bb.salerbackone_ios()
    bb.salerbackone_ios()
    orderliebiao = bb.salerEnter_ios(u"待确认")
    time.sleep(3)
    print(type(orderliebiao))
    salercode = bb.salerOrderinfo_ios(orderliebiao, u"其他")
    print salercode
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    dealercode1 = cc.dealerOrderinfo_ios(u"待确认")
    print(dealercode1)
    bb.saler_startapp_ios(saler[4], saler[5])
    bb.salerEnter_ios(u"待收货")
    salercode2 = bb.salerOrderinfo_ios(u"待收货", u"不收货")
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    dealercode2 = dealercode1 = cc.dealerOrderinfo_ios(u"待发货")
    bb.saler_startapp_ios(saler[4], saler[5])
    bb.salerEnter_ios(u"待收货")
    salercode3 = bb.salerOrderinfo_ios(u"待收货", u"收货")
    bb.salerbackone_ios()
    bb.salerEnter_ios(u"已收货")
    salercode4 = bb.salerOrderinfo_ios(u"已收货", u"其他")
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    dealercode4 = cc.dealerOrderinfo_ios(u"已完成")
    assert salercode2 == dealercode4
Ejemplo n.º 12
0
def appJXSMyinfo():
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    cc.dealerMyinfo(saler[19], saler[20], saler[21])
Ejemplo n.º 13
0
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    dealercode2 = dealercode1 = cc.dealerOrderinfo_ios(u"待发货")
    bb.saler_startapp_ios(saler[4], saler[5])
    bb.salerEnter_ios(u"待收货")
    salercode3 = bb.salerOrderinfo_ios(u"待收货", u"收货")
    bb.salerbackone_ios()
    bb.salerEnter_ios(u"已收货")
    salercode4 = bb.salerOrderinfo_ios(u"已收货", u"其他")
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    dealercode4 = cc.dealerOrderinfo_ios(u"已完成")
    assert salercode2 == dealercode4


#全部订单
bb = winretailsaler_IOS.appsalerInformation_IOS("http://localhost:8100")
cc = winretaildealer_IOS.appdealerInformation_IOS("http://localhost:8100")
bb.saler_startapp_ios(saler[4],"aa248163")
bb.salerEnterstorehouse_ios()#进入仓库
time.sleep(2)
sumck = bb.salerAddShopsTogwc_ios()#加入到购物车
time.sleep(2)
sumgwc = bb.salerAddShopsToydd(sumck)#加入到预订单
time.sleep(2)
from AppClass import Commonvariable
sumydd = bb.saleraddyddToorder(sumgwc,Commonvariable.SALER_ISSELECT_a)#下单是否选择优惠券
#确认订单检查订单
bb.salerbackone_ios()
bb.salerbackone_ios()
orderliebiao = bb.salerEnter_ios(u"待确认")
time.sleep(3)
print(type(orderliebiao))
Ejemplo n.º 14
0
def appOfflogin_IOS():
    cc = winretaildealer_IOS.appdealerInformation_IOS(Commonvariable.PORT)
    cc.dealer_startapp_ios(dealer[4], dealer[5])  # jxs
    cc.dealerOfflogin_ios()
Ejemplo n.º 15
0
def appjxsGoodsshelves_IOS():
    cc = winretaildealer_IOS.appdealerInformation_IOS("http://localhost:8100")
    # 脉动(青柠)1L*12瓶/箱,6902538004632,54
    cc.dealer_startapp_ios(dealer[4], dealer[5])
    cc.dealerjxsGoodsshelves_ios(saler[17], saler[18], dealer[4], dealer[5])