Exemplo n.º 1
0

class OperpsnDelTest(SteamTestCase):
    '''
            admin删除一个运营位配置
      '''
    __interfaceName__ = "/operation-manage/featured/removeIndexConfig"

    @initAdminInputService(services=[
        OperpsnAddService, OperpsnQueryService, ArticleSearchService
    ],
                           curser=OperpsnDelService)
    def __init__(self, methodName='runTest', param=None):
        super(OperpsnDelTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.admin.operate.queryOperpsnTest import OperpsnQueryTest
    from steam.admin.operate.addOperPsnTest import OperpsnAddTest
    from steam.admin.article.ArticleSearchTest import ArticleSearchTest
    OperpsnAddTest(methodName="compareRetcodeTest",
                   param=[1, 2, 3, 4, 5, {}, 7, 8])
    OperpsnQueryTest(methodName="compareRetcodeTest",
                     param=[1, 2, 3, 4, 5, {}, 7, 8])
    ArticleSearchTest(methodName="compareRetcodeTest",
                      param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\admin\\operate\\steam-featuredhomeConfigremoveIndexConfigs.yml",
        testclse=OperpsnDelTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 2
0
from steam.admin.activity.addActivityService import ActivityAddService
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.util.steamLog import SteamTestCase
from steam.util.testJsonFormat import initAdminInputService


class ActivityAddTest(SteamTestCase):
    """
         新增活动
    """
    __interfaceName__ = "/operation-manage/product/add"

    @initAdminInputService(services=[], curser=ActivityAddService)
    def __init__(self, methodName='runTest', param=None):
        super(ActivityAddTest, self).__init__(methodName, param)


if __name__ == "__main__":
    runTestOneCls(
        casefilepath=
        "\\steamcase\\admin\\activity\\operation-manageproductadds.yml",
        testclse=ActivityAddTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 3
0
    __interfaceName__ = "/member-service/address/default"

    @initInputService(services=[
        UserAddAddressService, UserDelAddressService, MemberAddressService
    ],
                      curser=AddressDefaultService)
    def __init__(self, methodName='runTest', param=None):
        super(AddressDefaultTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.login.userLoginTest import UserLoginTest
    from steam.user.member.userAddAddressTest import UserAddAddressTest
    from steam.user.member.userDelAddressTest import UserDelAddressTest
    from steam.user.member.memberAddressTest import MemberAddressTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest",
                  param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserAddAddressTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserDelAddressTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    MemberAddressTest(methodName="compareRetcodeTest",
                      param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\user\\member\\member-serviceAddressDefaults.yml",
        testclse=AddressDefaultTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 4
0
from steam.admin.activity.addActivityService import ActivityAddService
from steam.admin.activity.productAuditService import ProductAuditService
from steam.util.steamLog import SteamTestCase
from steam.util.testJsonFormat import initAdminInputService


class ActivityPublishTest(SteamTestCase):
    '''
            根据ID搜索活动
      '''
    __interfaceName__ = "/operation-manage/product/publish"

    @initAdminInputService(services=[[ActivityAddService, "goodsreqjsonfile"],
                                     ProductAuditService],
                           curser=ActivityPublishService)
    def __init__(self, methodName='runTest', param=None):
        super(ActivityPublishTest, self).__init__(methodName, param)

    def publishActivityTest(self):
        oneActRsp = self.myservice.publishActivitySer()
        code = self.myservice.getRetcodeByUpactRsp(oneActRsp=oneActRsp)
        self.assertTrue(code == self.expectdata["code"])


if __name__ == "__main__":
    from steam.admin.activity.searchActivityTest import ActivitySearchTest
    ActivitySearchTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(casefilepath=
                  "\\steamcase\\activity\\operation-manageproductpublishs.yml",
                  testclse=ActivityPublishTest)
Exemplo n.º 5
0
from steam.util.testJsonFormat import initAdminInputService
from steam.util.steamLog import SteamTestCase
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.admin.resource.tagQueryTagsService import TagQueryTagsService
from steam.user.search.weixinSearchService import WeixinSearchService
from steam.user.collection.userCancelCollectionService import UserCancelCollectionService


class TagQueryTagsTest(SteamTestCase):
    """
            %(subTitle)s
      """
    __interfaceName__ = "/operation-manage/tag/queryTags"

    @initAdminInputService(
        services=[WeixinSearchService, UserCancelCollectionService],
        curser=TagQueryTagsService)
    def __init__(self, methodName='runTest', param=None):
        super(TagQueryTagsTest, self).__init__(methodName, param)


if __name__ == "__main__":
    runTestOneCls(
        casefilepath=
        "\\steamcase\\admin\\resource\\operation-manageTagQueryTagss.yml",
        testclse=TagQueryTagsTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 6
0
from steam.util.testJsonFormat import initAdminInputService
from steam.util.steamLog import SteamTestCase
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.admin.media.queryMerchantInfoByCondtionService import QueryMerchantInfoByCondtionService


class QueryMerchantInfoByCondtionTest(SteamTestCase):
    """
            %(subTitle)s
      """
    __interfaceName__ = "/operation-manage/material/queryMaterialByCondition"

    @initAdminInputService(services=[],
                           curser=QueryMerchantInfoByCondtionService)
    def __init__(self, methodName='runTest', param=None):
        super(QueryMerchantInfoByCondtionTest,
              self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\admin\\media\\merchantQueryMerchantInfoByCondtions.yml",
        testclse=QueryMerchantInfoByCondtionTest,
        basepath="D:\\litaojun\\steamyml")
        UserDetailOrderActivityService, LotteryDrawService,
        UserListOrderActivityService
    ],
                      curser=MerchantCertificateTicketService,
                      sign="merchant")
    def __init__(self, methodName='runTest', param=None):
        super(MerchantCertificateTicketTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.order.userDetailOrderTest import UserDetailOrderActivityTest
    from steam.user.order.userListOrderActivityTest import UserListOrderActivityTest
    from steam.user.lottery.lotteryDrawTest import LotteryDrawTest
    from steam.user.lottery.lotteryDetailTest import LotteryDetailTest
    from steam.admin.lottery.lotteryQueryLotteryListTest import LotteryQueryLotteryListTest
    UserDetailOrderActivityTest(methodName="compareRetcodeTest",
                                param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserListOrderActivityTest(methodName="compareRetcodeTest",
                              param=[1, 2, 3, 4, 5, {}, 7, 8])
    LotteryDrawTest(methodName="compareRetcodeTest",
                    param=[1, 2, 3, 4, 5, {}, 7, 8])
    LotteryDetailTest(methodName="compareRetcodeTest",
                      param=[1, 2, 3, 4, 5, {}, 7, 8])
    LotteryQueryLotteryListTest(methodName="compareRetcodeTest",
                                param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\user\\merchant\\ticket-serviceMerchantCertificateTickets.yml",
        testclse=MerchantCertificateTicketTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 8
0
from steam.admin.course.courseRemoveCourseService import CourseRemoveCourseService
from steam.admin.course.courseQueryCourseByConditionService import CourseQueryCourseByConditionService
from steam.admin.course.courseCreateCourseService import CourseCreateCourseService


class CourseRemoveCourseTest(SteamTestCase):
    """
            %(subTitle)s
      """
    __interfaceName__ = "/operation-manage/course/removeCourse"

    @initAdminInputService(services=[
        CourseQueryCourseByConditionService, CourseCreateCourseService
    ],
                           curser=CourseRemoveCourseService)
    def __init__(self, methodName='runTest', param=None):
        super(CourseRemoveCourseTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.admin.course.courseQueryCourseByConditionTest import CourseQueryCourseByConditionTest
    from steam.admin.course.courseCreateCourseTest import CourseCreateCourseTest
    CourseQueryCourseByConditionTest(methodName="compareRetcodeTest",
                                     param=[1, 2, 3, 4, 5, {}, 7, 8])
    CourseCreateCourseTest(methodName="compareRetcodeTest",
                           param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\admin\\course\\operation-manageCourseRemoveCourses.yml",
        testclse=CourseRemoveCourseTest,
        basepath="D:\\litaojun\\steamyml")
from steam.util.testJsonFormat import initAdminInputService
from steam.util.steamLog import SteamTestCase
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.admin.media.materialModifyMaterialService import MaterialModifyMaterialService
from steam.admin.media.queryMerchantInfoByCondtionService import QueryMerchantInfoByCondtionService
from steam.admin.media.materialCreateMaterialService import MaterialCreateMaterialService
from steam.admin.media.materialRemoveMaterialService import MaterialRemoveMaterialService


class MaterialModifyMaterialTest(SteamTestCase):
    """
            修改媒资
      """
    __interfaceName__ = "/operation-manage/material/modifyMaterial"

    @initAdminInputService(services=[
        MaterialCreateMaterialService, MaterialRemoveMaterialService,
        QueryMerchantInfoByCondtionService
    ],
                           curser=MaterialModifyMaterialService)
    def __init__(self, methodName='runTest', param=None):
        super(MaterialModifyMaterialTest, self).__init__(methodName, param)


if __name__ == "__main__":
    runTestOneCls(
        casefilepath=
        "\\steamcase\\admin\\media\\operation-manageMaterialModifyMaterials.yml",
        testclse=MaterialModifyMaterialTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 10
0
from steam.util.testJsonFormat import initInputService
from steam.util.steamLog import SteamTestCase
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.user.merchant.orderMailService import OrderMailService


class OrderMailTest(SteamTestCase):
      """
            发送订单到商户邮箱
      """
      __interfaceName__ = "/merchant/order/mail"
      @initInputService( services = [ ] ,
                         curser   = OrderMailService ,sign="merchant")
      def __init__(self, methodName = 'runTest',
                         param      =  None):
          super(OrderMailTest,self).__init__(methodName,param)

if __name__ == "__main__":
    runTestOneCls(
                    casefilepath = "\\steamcase\\user\\merchant\\merchantOrderMails.yml",
                    testclse     = OrderMailTest,
                    basepath     = "D:\\litaojun\\steamyml"
                 )
Exemplo n.º 11
0
            admin修改一个运营位配置
      '''
    __interfaceName__ = "/operation-manage/featured/modifyIndexConfig"

    @initAdminInputService(services=[
        OperpsnAddService, OperpsnDelService, FeaturedSearchResourceService,
        OperpsnQueryService
    ],
                           curser=OperpsnAlertService)
    def __init__(self, methodName='runTest', param=None):
        super(OperpsnAlertTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.admin.operate.addOperPsnTest import OperpsnAddTest
    from steam.admin.operate.delOperpsnTest import OperpsnDelTest
    from steam.admin.operate.featuredSearchResourceTest import FeaturedSearchResourceTest
    from steam.admin.operate.queryOperpsnTest import OperpsnQueryTest
    OperpsnAddTest(methodName="compareRetcodeTest",
                   param=[1, 2, 3, 4, 5, {}, 7, 8])
    OperpsnDelTest(methodName="compareRetcodeTest",
                   param=[1, 2, 3, 4, 5, {}, 7, 8])
    FeaturedSearchResourceTest(methodName="compareRetcodeTest",
                               param=[1, 2, 3, 4, 5, {}, 7, 8])
    OperpsnQueryTest(methodName="compareRetcodeTest",
                     param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\admin\\operate\\operation-manageFeaturedModifyIndexConfigs.yml",
        testclse=OperpsnAlertTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 12
0
    ],
                      curser=UserCancelMatchAppleService)
    def __init__(self, methodName='runTest', param=None):
        super(UserCancelMatchAppleTest, self).__init__(methodName, param)

    # def userCancelMatchAppleTest(self):
    #     rsp     = self.myservice.userCancelMatchApple()
    #     retcode = self.myservice.getRetcodeByRsp( response = rsp )
    #     self.assertTrue(retcode == self.expectdata["code"] ,
    #                     msg     =  "retcode = %s,expectCode =%s" % (retcode ,self.expectdata["code"]))


if __name__ == "__main__":
    from steam.user.match.userMatchQueryTest import UserMatchQueryTest
    from steam.user.match.userMatchAppleTest import UserMatchAppleTest
    from steam.user.match.userMatchAppleQueryTest import UserMatchAppleQueryTest
    UserMatchQueryTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserMatchAppleTest(
        methodName="compareRetcodeTest",
        param=[1, 2, 3, 4, 5, {
            "matchId": 22,
            "subMatchName": "sss"
        }, 7, 8])
    UserMatchAppleQueryTest(methodName="compareRetcodeTest",
                            param=[1, 2, 3, 4, 5, {
                                "matchId": 22
                            }, 7, 8])
    runTestOneCls(
        casefilepath="\\steamcase\\user\\match-servicememberapplycancels.yml",
        testclse=UserCancelMatchAppleTest)
Exemplo n.º 13
0
          %(subTitle)s
    """
    __interfaceName__ = "/operation-manage/lottery/queryLotteryList"

    @initInputService(
        services=[WeixinSearchService, UserCancelCollectionService],
        curser=LotteryQueryLotteryListService,
        sign="admin")
    def __init__(self, methodName='runTest', param=None):
        super(LotteryQueryLotteryListTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.login.userLoginTest import UserLoginTest
    from steam.user.search.weixinSearchTest import WeixinSearchTest
    from steam.user.collection.userCancelCollectionTest import UserCancelCollectionTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest",
                  param=[1, 2, 3, 4, 5, {}, 7, 8])
    WeixinSearchTest(methodName="compareRetcodeTest",
                     param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserCancelCollectionTest(methodName="compareRetcodeTest",
                             param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\admin\\lottery\\operation-manageLotteryQueryLotteryLists.yml",
        testclse=LotteryQueryLotteryListTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 14
0
class MemberQueryMemberPointLogsTest(SteamTestCase):
    """
            %(subTitle)s
      """
    __interfaceName__ = "/point-service/member/queryMemberPointLogs"

    @initInputService(
        services=[WeixinSearchService, UserCancelCollectionService],
        curser=MemberQueryMemberPointLogsService)
    def __init__(self, methodName='runTest', param=None):
        super(MemberQueryMemberPointLogsTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.login.userLoginTest import UserLoginTest
    from steam.user.search.weixinSearchTest import WeixinSearchTest
    from steam.user.collection.userCancelCollectionTest import UserCancelCollectionTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest",
                  param=[1, 2, 3, 4, 5, {}, 7, 8])
    WeixinSearchTest(methodName="compareRetcodeTest",
                     param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserCancelCollectionTest(methodName="compareRetcodeTest",
                             param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\user\\member\\point-serviceMemberQueryMemberPointLogss.yml",
        testclse=MemberQueryMemberPointLogsTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 15
0
from steam.util.steamLog import SteamTestCase
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.user.order.userListOrderActivityService import UserListOrderActivityService
from steam.util.testJsonFormat import initInputService
class UserListOrderActivityTest(SteamTestCase):
      '''
            用户查询订单列表
      '''
      __interfaceName__ = "/order-service/order"
      @initInputService(services=[],
                        curser=UserListOrderActivityService)
      def __init__(self, methodName='runTest', param=None):
          super(UserListOrderActivityTest,self).__init__(methodName,param)

if  __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.search.weixinSearchTest import WeixinSearchTest
    from steam.user.weixin.userViewActivityTest import UserViewActivityTest
    from steam.user.login.userLoginTest import UserLoginTest
    from steam.user.member.memberAddressTest import MemberAddressTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest", param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest", param=[1, 2, 3, 4, 5, {}, 7, 8])
    WeixinSearchTest(methodName="compareRetcodeTest", param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserViewActivityTest(methodName="compareRetcodeTest", param=[1, 2, 3, 4, 5, {}, 7, 8])
    MemberAddressTest(methodName="compareRetcodeTest", param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
                        casefilepath = "\\steamcase\\user\\order-serviceorders.yml",
                        testclse = UserListOrderActivityTest
                 )
Exemplo n.º 16
0
                                UserMatchQueryService,
                                UserMatchAppleQueryService],
                      curser=MemberApplyDetailSaveService)
    def __init__(self, methodName='runTest', param=None):
        super(MemberApplyDetailSaveTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.login.userLoginTest import UserLoginTest
    from steam.user.match.userMatchAppleTest import UserMatchAppleTest
    from steam.user.match.userCancelMatchAppleTest import UserCancelMatchAppleTest
    from steam.user.match.userMatchQueryTest import UserMatchQueryTest
    from steam.user.match.userMatchAppleQueryTest import UserMatchAppleQueryTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest",
                  param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserCancelMatchAppleTest(methodName="compareRetcodeTest",
                             param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserMatchAppleTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserMatchQueryTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserMatchAppleQueryTest(methodName="compareRetcodeTest",
                            param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\user\\match\\match-serviceMemberApplyDetailSaves.yml",
        testclse=MemberApplyDetailSaveTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 17
0
from steam.user.home.hotPositionService import HomeHotPositionService
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.util.steamLog import SteamTestCase
from steam.util.testJsonFormat import initInputService


class HotPositionTest(SteamTestCase):
    '''
            计算内容
      '''
    __interfaceName__ = "/featured/index/configs/pageQueryPositionShows"

    @initInputService(services=[], curser=HomeHotPositionService)
    def __init__(self, methodName='runTest', param=None):
        super(HotPositionTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.login.userLoginTest import UserLoginTest

    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest",
                  param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\homepage\\featuredindexconfigspageQueryPositionShowss.yml",
        testclse=HotPositionTest)
class MaterialQueryAliyunVideoAuthTest(SteamTestCase):
    '''
            用户获取观看权限字符串
      '''
    __interfaceName__ = "/steam-course/course/queryAliyunVideoAuth"

    @initInputService(services=[WeixinSearchService, UserViewCourseService],
                      curser=QueryAliyunVideoAuthService)
    def __init__(self, methodName='runTest', param=None):
        super(MaterialQueryAliyunVideoAuthTest,
              self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.search.weixinSearchTest import WeixinSearchTest
    from steam.user.weixin.userViewCourseTest import UserViewCourseTest
    WeixinSearchTest(methodName="compareRetcodeTest",
                     param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserViewCourseTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.login.userLoginTest import UserLoginTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest",
                  param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\user\\steam-coursecoursequeryAliyunVideoAuths.yml",
        testclse=MaterialQueryAliyunVideoAuthTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 19
0
        WeixinSearchService, UserOrderActivityService, UserViewCourseService,
        UserListOrderActivityService
    ],
                      curser=ScoreAddService)
    def __init__(self, methodName='runTest', param=None):
        super(ScoreAddTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.login.userLoginTest import UserLoginTest
    from steam.user.search.weixinSearchTest import WeixinSearchTest
    from steam.user.order.userOrderActivityTest import UserOrderActivityTest
    from steam.user.weixin.userViewCourseTest import UserViewCourseTest
    from steam.user.order.userListOrderActivityTest import UserListOrderActivityTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest",
                  param=[1, 2, 3, 4, 5, {}, 7, 8])
    WeixinSearchTest(methodName="compareRetcodeTest",
                     param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserOrderActivityTest(methodName="compareRetcodeTest",
                          param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserViewCourseTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserListOrderActivityTest(methodName="compareRetcodeTest",
                              param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath="\\steamcase\\user\\order\\order-serviceScoreAdds.yml",
        testclse=ScoreAddTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 20
0
"""
from steam.util.steamLog import SteamTestCase
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.user.search.weixinSearchService import WeixinSearchService
from steam.user.course.queryCourseService import QueryCourseService
from steam.util.testJsonFormat import initInputService
class QueryCourseTest(SteamTestCase):
      '''
            用户查看课程详情页
      '''
      __interfaceName__ = "/steam-course/course/queryCourse-del"
      @initInputService( services = [ WeixinSearchService ],
                         curser   = QueryCourseService )
      def __init__(self, methodName = 'runTest',
                         param      = None):
          super(QueryCourseTest,self).__init__(methodName,param)


if __name__ == "__main__":
   from steam.user.search.weixinSearchTest import WeixinSearchTest
   WeixinSearchTest(methodName="compareRetcodeTest",param = [1,2,3,4,5,{},7,8])
   from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
   from steam.user.login.userLoginTest import UserLoginTest
   UserVerfiyCodeTest( methodName = "compareRetcodeTest",
                       param      = [1, 2, 3, 4, 5, {}, 7, 8] )
   UserLoginTest(methodName="compareRetcodeTest",
                 param=[1, 2, 3, 4, 5, {}, 7, 8])
   runTestOneCls(
                    casefilepath = "\\steamcase\\user\\steam-coursecoursequeryCourse.yml",
                    testclse     = QueryCourseTest
                )
Exemplo n.º 21
0
from steam.util.testJsonFormat import initInputService
from steam.util.steamLog import SteamTestCase
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.user.merchant.merchantLoginService import MerchantLoginService
from steam.user.merchant.passportVerifyCodeService import PassportVerifyCodeService


class MerchantLoginTest(SteamTestCase):
    """
          商户登录
    """
    __interfaceName__ = "/merchant-service/merchant/login"

    @initInputService(services=[PassportVerifyCodeService],
                      curser=MerchantLoginService,
                      sign="merchant")
    def __init__(self, methodName='runTest', param=None):
        super(MerchantLoginTest, self).__init__(methodName, param)


if __name__ == "__main__":
    runTestOneCls(
        casefilepath=
        "\\steamcase\\user\\merchant\\merchant-serviceMerchantLogins.yml",
        testclse=MerchantLoginTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 22
0
    ],
                      curser=UserOrderActivityService)
    def __init__(self, methodName='runTest', param=None):
        super(UserOrderActivityTest, self).__init__(methodName, param)

    def userOrderActivity(self):
        userOrderRsp = self.myservice.userOrderActivity()
        retcode = self.myservice.getRetcodeByOrderRsp(response=userOrderRsp)
        self.assertTrue(retcode == self.expectdata["code"])


if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.search.weixinSearchTest import WeixinSearchTest
    from steam.user.weixin.userViewActivityTest import UserViewActivityTest
    from steam.user.login.userLoginTest import UserLoginTest
    from steam.user.member.memberAddressTest import MemberAddressTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest",
                  param=[1, 2, 3, 4, 5, {}, 7, 8])
    WeixinSearchTest(methodName="compareRetcodeTest",
                     param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserViewActivityTest(methodName="compareRetcodeTest",
                         param=[1, 2, 3, 4, 5, {}, 7, 8])
    MemberAddressTest(methodName="compareRetcodeTest",
                      param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath="\\steamcase\\user\\order-serviceordersubmitAndPays.yml",
        testclse=UserOrderActivityTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 23
0
"""
from steam.util.testJsonFormat import initInputService
from steam.util.steamLog import SteamTestCase
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.user.member.userDelAddressService import UserDelAddressService
from steam.user.member.memberAddressService import MemberAddressService
from steam.user.member.userAddAddressService import UserAddAddressService


class UserDelAddressTest(SteamTestCase):
    '''
            微信端用户删除一个地址
      '''
    __interfaceName__ = "/member-service/address-del"

    @initInputService(services=[UserAddAddressService, MemberAddressService],
                      curser=UserDelAddressService)
    def __init__(self, methodName='runTest', param=None):
        super(UserDelAddressTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.member.userAddAddressTest import UserAddAddressTest
    from steam.user.member.memberAddressTest import MemberAddressTest
    UserAddAddressTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    MemberAddressTest(methodName="compareRetcodeTest",
                      param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath="\\steamcase\\user\\member-serviceaddress-dels.yml",
        testclse=UserDelAddressTest)
Exemplo n.º 24
0
@time: 2018/4/23 16:24 
"""

from steam.util.steamLog import SteamTestCase
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.util.testJsonFormat import initAdminInputService
from steam.admin.article.ArticleSearchService import ArticleSearchService

from steam.admin.article.delArticleService import ArticleDelService
from steam.admin.article.ArticleAddService import ArticleAddService

class ArticleDelTest(SteamTestCase):
      '''
            admin删除文章视频
      '''
      __interfaceName__ = "/operation-manage/media/deleteMedia"
      @initAdminInputService( services = [ ArticleAddService  ,
                                      ArticleSearchService  ] ,
                         curser   =   ArticleDelService  )
      def __init__(self, methodName='runTest', param=None):
          super(ArticleDelTest,self).__init__(methodName,param)

if __name__ == "__main__":
   from steam.admin.article.ArticleAddTest import ArticleAddTest
   from steam.admin.article.ArticleSearchTest import ArticleSearchTest
   ArticleSearchTest( methodName="compareRetcodeTest" , param= [ 1, 2, 3, 4, 5, {}, 7, 8 ] )
   ArticleAddTest( methodName="compareRetcodeTest"    , param= [ 1, 2, 3, 4, 5, {}, 7, 8 ] )
   runTestOneCls(
                    casefilepath = "\\steamcase\\article\\operation-managemediadeleteMedias.yml",
                    testclse     = ArticleDelTest
                )
class MerchantQueryMerchantResourcesTest(SteamTestCase):
    """
            商户页
      """
    __interfaceName__ = "/merchant-service/merchant/queryMerchantResources"

    @initInputService(services=[],
                      curser=MerchantQueryMerchantResourcesService)
    def __init__(self, methodName='runTest', param=None):
        super(MerchantQueryMerchantResourcesTest,
              self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.login.userLoginTest import UserLoginTest
    from steam.user.search.weixinSearchTest import WeixinSearchTest
    from steam.user.collection.userCancelCollectionTest import UserCancelCollectionTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest",
                  param=[1, 2, 3, 4, 5, {}, 7, 8])
    WeixinSearchTest(methodName="compareRetcodeTest",
                     param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserCancelCollectionTest(methodName="compareRetcodeTest",
                             param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\user\\merchant\\merchant-serviceMerchantQueryMerchantResourcess.yml",
        testclse=MerchantQueryMerchantResourcesTest,
        basepath="D:\\litaojun\\steamyml")
Exemplo n.º 26
0
    """
            运营位配置下移
      """
    __interfaceName__ = "/operation-manage/featured/moveDownRecord"

    @initAdminInputService(services=[
        OperpsnQueryService, FeaturedSearchResourceService, OperpsnAddService,
        OperpsnDelService
    ],
                           curser=FeaturedMoveDownRecordService)
    def __init__(self, methodName='runTest', param=None):
        super(FeaturedMoveDownRecordTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.login.userLoginTest import UserLoginTest
    from steam.user.search.weixinSearchTest import WeixinSearchTest
    from steam.user.collection.userCancelCollectionTest import UserCancelCollectionTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest",
                  param=[1, 2, 3, 4, 5, {}, 7, 8])
    WeixinSearchTest(methodName="compareRetcodeTest",
                     param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserCancelCollectionTest(methodName="compareRetcodeTest",
                             param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\admin\\operate\\operation-manageFeaturedMoveDownRecords.yml",
        testclse=FeaturedMoveDownRecordTest)
Exemplo n.º 27
0
from steam.util.testJsonFormat import initInputService
from steam.util.steamLog import SteamTestCase
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.user.collection.userListCollectionService import UserListCollectionService
class UserListCollectionTest(SteamTestCase):
      '''
            用户浏览课程
      '''
      __interfaceName__    = "/member/collection/queryPage"
      @initInputService( services = [ ] ,
                         curser   = UserListCollectionService )
      def __init__( self, methodName = 'runTest',
                          param      =  None ):
          super(UserListCollectionTest,self).__init__(methodName,param)

if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.login.userLoginTest import UserLoginTest
    from steam.user.login.queryMemberIdTest import QueryMemberIdTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest( methodName="compareRetcodeTest",
                   param=[1, 2, 3, 4, 5, {}, 7, 8] )
    QueryMemberIdTest( methodName = "compareRetcodeTest",
                       param      = [1, 2, 3, 4, 5, {}, 7, 8] )
    runTestOneCls(
                    casefilepath = "\\steamcase\\user\\membercollectionqueryPages.yml",
                    testclse     = UserListCollectionTest,
                    basepath     = "D:\\litaojun\\steamyml"
                 )
Exemplo n.º 28
0
@software: PyCharm 
@file: delClassifyTest.py 
@time: 2018/4/18 19:06 
"""
from steam.util.testJsonFormat import initAdminInputService
from steam.admin.classify.delClassifyService import ClassfiyDelService
from steam.admin.classify.addClassfiyService import ClassfiyAddService
from opg.bak.testcaseRunMgr import runTestOneCls
from steam.util.steamLog import SteamTestCase


class ClassfiyDelTest(SteamTestCase):
    '''
            admin删除分类
      '''
    __interfaceName__ = "/operation-manage/entry/removeEntry"

    @initAdminInputService(curser=ClassfiyDelService,
                           services=[ClassfiyAddService])
    def __init__(self, methodName='runTest', param=None):
        super(ClassfiyDelTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.admin.classify.addClassfiyTest import ClassfiyAddTest
    ClassfiyAddTest(methodName="compareRetcodeTest",
                    param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\classify\\resource-serviceresourceremoveEntrys.yml",
        testclse=ClassfiyDelTest)
Exemplo n.º 29
0
from steam.util.testJsonFormat import initInputService
from steam.user.search.weixinSearchService import WeixinSearchService
class ResourceVisitTest(SteamTestCase):
      '''
            用户浏览视频文章
      '''
      __interfaceName__   = "/steam-resource/product/detail"
      @initInputService( services = [ WeixinSearchService ],
                         curser   = ResourceVisitService )
      def __init__(self, methodName = 'runTest',
                         param      = None      ):
          super(ResourceVisitTest,self).__init__(methodName,param)

      # def userVisitResourceNor(self):
      #     articlersp = self.myservice.sendInterfaceUrlReq()
      #     rspcode    = self.myservice.getRetcodeByRsp(response = articlersp)
      #     self.assertTrue(rspcode == self.expectdata["code"])

if __name__ == "__main__":
   from steam.user.search.weixinSearchTest import WeixinSearchTest
   WeixinSearchTest(methodName="compareRetcodeTest",param = [1,2,3,4,5,{},7,8])
   from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
   from steam.user.login.userLoginTest import UserLoginTest
   UserVerfiyCodeTest(methodName="compareRetcodeTest",
                      param=[1, 2, 3, 4, 5, {}, 7, 8])
   UserLoginTest(methodName="compareRetcodeTest",
                 param=[1, 2, 3, 4, 5, {}, 7, 8])
   runTestOneCls(
                    casefilepath = "\\steamcase\\user\\steam-resourceproductdetails.yml",
                    testclse     = ResourceVisitTest
                )
Exemplo n.º 30
0
class MatchSubMatchPageTest(SteamTestCase):
    """
            %(subTitle)s
      """
    __interfaceName__ = "/operation-manage/match/subMatchPage"

    @initAdminInputService(
        services=[WeixinSearchService, UserCancelCollectionService],
        curser=MatchSubMatchPageService)
    def __init__(self, methodName='runTest', param=None):
        super(MatchSubMatchPageTest, self).__init__(methodName, param)


if __name__ == "__main__":
    from steam.user.verfiycode.userVerfiyCodeTest import UserVerfiyCodeTest
    from steam.user.login.userLoginTest import UserLoginTest
    from steam.user.search.weixinSearchTest import WeixinSearchTest
    from steam.user.collection.userCancelCollectionTest import UserCancelCollectionTest
    UserVerfiyCodeTest(methodName="compareRetcodeTest",
                       param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserLoginTest(methodName="compareRetcodeTest",
                  param=[1, 2, 3, 4, 5, {}, 7, 8])
    WeixinSearchTest(methodName="compareRetcodeTest",
                     param=[1, 2, 3, 4, 5, {}, 7, 8])
    UserCancelCollectionTest(methodName="compareRetcodeTest",
                             param=[1, 2, 3, 4, 5, {}, 7, 8])
    runTestOneCls(
        casefilepath=
        "\\steamcase\\admin\\match\\operation-manageMatchSubMatchPages.yml",
        testclse=MatchSubMatchPageTest,
        basepath="D:\\litaojun\\steamyml")