Example #1
0
class 选车固定元素检查(unittest.TestCase, BasePage):
    #本用例包含安装App、启动、初始app、检查正常登陆、退出功能
    global a
    a = AppatxLibrary()

    @classmethod
    @setupclass
    def setUpClass(cls):
        cls.a = AppatxLibrary()
        cls.a.clear_app()
        cls.a.open_app()
        cls.a.chu_shi()

    @testcase
    def test_01_选车筛选找车(self):
        a.click_T('选车')
        a.cha_T('筛选找车')

    @testcase
    def test_02_选车按工况找车(self):
        a.cha_T('按工况找车')

    @testcase
    def test_03_选车排行榜(self):
        a.cha_T('排行榜')

    @testcase
    def test_04_选车最近浏览(self):
        a.cha_T('最近浏览')

    @testcase
    def test_05_选车推荐品牌(self):
        a.cha_T('推荐品牌')

    @testcase
    def test_06_选车热销排行(self):
        a.cha_T('热销排行')

    @testcase
    def test_07_选车新能源选车(self):
        a.cha_T('新能源选车')

    @testcase
    def test_08_选车推荐配件(self):
        a.cha_T('推荐配件')
Example #2
0
 def setUpClass(cls):
     cls.a = AppatxLibrary()
     cls.a.clear_app()
     cls.a.open_app()
     cls.a.chu_shi()
     cls.a.login('test1191','z123456z')
Example #3
0
class 登陆入口检查(unittest.TestCase, BasePage):
    #本用例包含安装App、启动、初始app、检查正常登陆、退出功能
    global a
    a = AppatxLibrary()

    @classmethod
    @setupclass
    def setUpClass(cls):
        cls.a = AppatxLibrary()
        cls.a.clear_app()
        cls.a.open_app()
        cls.a.chu_shi()
        cls.a.login('test1191','z123456z')
    
    @testcase
    def test_01_新闻(self):
        a.return_back()
        a.click_T('首页')
        a.click_T('新闻')
        a.click_R('com.truckhome.bbs:id/tv_title') #第一条内容
        a.click_T('发表我的看法...')
        a.cha_T('去绑定微信')

    @testcase
    def test_02_视频(self):
        a.return_back()
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/layout_item') #第一条内容
        a.click_T('发表我的看法...')
        a.cha_T('去绑定微信')

    @testcase
    def test_03_图片(self):
        a.return_back()
        a.click_T('图片')
        a.click_R('com.truckhome.bbs:id/tv_title') #第一条内容
        a.click_T('发表我的看法...')
        a.cha_T('去绑定微信')

    @testcase
    def test_04_行情(self):
        a.return_back()
        a.click_T('行情')
        a.click_R('com.truckhome.bbs:id/tv_title') #第一条内容
        a.click_R('com.truckhome.bbs:id/comment_tv')
        a.cha_T('去绑定微信')

    @testcase
    def test_05_养车(self):
        a.return_back()
        a.click_T('养车')
        a.click_R('com.truckhome.bbs:id/tv_title') #第一条内容
        a.click_R('com.truckhome.bbs:id/comment_tv')
        a.cha_T('去绑定微信')

    @testcase
    def test_06_评测(self):
        a.return_back()
        a.click_T('评测')
        a.click_R('com.truckhome.bbs:id/tv_title') #第一条内容
        a.click_R('com.truckhome.bbs:id/comment_tv')
        a.cha_T('去绑定微信')

    @testcase
    def test_07_政策(self):
        a.return_back()
        a.click_T('政策')
        a.click_R('com.truckhome.bbs:id/tv_title') #第一条内容
        a.click_R('com.truckhome.bbs:id/comment_tv')
        a.cha_T('去绑定微信')

    @testcase
    def test_08_物流(self):
        a.return_back()
        a.click_T('物流')
        a.click_R('com.truckhome.bbs:id/tv_title') #第一条内容
        a.click_T('发表我的看法...')
        a.cha_T('去绑定微信')


    @testcase
    def test_09_论坛发帖(self):
        a.return_back()
        a.click_T('论坛')
        a.click_R('com.truckhome.bbs:id/iv_forum_post')#发布按钮
        a.click_T('发帖子')
        a.cha_T('去绑定微信')
        
    @testcase
    def test_10_论坛求助(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_forum_post')#发布按钮
        a.click_T('发求助')
        a.cha_T('去绑定微信')
      
    @testcase
    def test_11_卡友圈推荐详情评论(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')#卡友圈tab按钮
        a.click_T('推荐')
        a.click_R('com.truckhome.bbs:id/lay_item')
        a.click_T('写评论')
        a.cha_T('去绑定微信')

    @testcase
    def test_12_卡友圈最新详情评论(self):
        a.return_back()
        a.click_T('最新')
        a.click_R('com.truckhome.bbs:id/iv_comment')
        a.click_T('写评论')
        a.cha_T('去绑定微信')

    @testcase
    def test_13_卡友圈视频详情评论(self):
        a.return_back()
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/tv_content')
        a.click_T('写评论')
        a.cha_T('去绑定微信')

    @testcase
    def test_14_卡友圈附近详情评论(self):
        a.return_back()
        a.click_T('附近')
        a.click_R('com.truckhome.bbs:id/iv_comment')
        a.click_T('写评论')
        a.cha_T('去绑定微信')

    @testcase
    def test_15_发布卡友圈(self):
        a.return_back()
        a.click_T('推荐')
        a.click_R('com.truckhome.bbs:id/iv_ciriv_circle_postcle_post')
        a.cha_T('去绑定微信')
Example #4
0
 def setUpClass(cls):
     cls.a = AppatxLibrary()
     cls.a.clear_app()
     cls.a.open_app()
     cls.a.chu_shi()
Example #5
0
class 分享入口检查(unittest.TestCase, BasePage):
    #本用例包含安装App、启动、初始app、检查正常登陆、退出功能
    global a
    a = AppatxLibrary()

    @classmethod
    @setupclass
    def setUpClass(cls):
        cls.a = AppatxLibrary()
        cls.a.clear_app()
        cls.a.open_app()
        cls.a.chu_shi()

    @testcase
    def test_01_资讯新闻分享(self):
        a.return_back()
        a.click_T('首页')
        a.click_T('新闻')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('分享')
        a.cha_T('复制链接')

    @testcase
    def test_02_资讯视频分享(self):
        a.return_back()
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/layout_item')
        a.click_T('分享')
        a.cha_T('复制链接')

    @testcase
    def test_03_资讯图片分享(self):
        a.return_back()
        a.click_T('图片')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('分享')
        a.click_T('复制链接')

    def test_04_资讯行情分享(self):
        a.return_back()
        a.click_T('行情')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('分享')
        a.click_T('复制链接')

    @testcase
    def test_05_资讯养车分享(self):
        a.return_back()
        a.click_T('养车')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('分享')
        a.cha_T('复制链接')

    @testcase
    def test_06_资讯评测分享(self):
        a.return_back()
        a.click_T('评测')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('分享')
        a.cha_T('复制链接')

    @testcase
    def test_07_资讯政策分享(self):
        a.return_back()
        a.click_T('政策')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('分享')
        a.cha_T('复制链接')

    @testcase
    def test_08_资讯物流分享(self):
        a.return_back()
        a.click_T('物流')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('分享')
        a.cha_T('复制链接')

    @testcase
    def test_09_论坛十大(self):
        a.return_back()
        a.click_T('论坛')
        a.click_T('十大热帖')
        a.click_R('com.truckhome.bbs:id/ten_hot_post_title_tv')
        a.click_T('分享')
        a.click_T('复制链接')

    @testcase
    def test_10_论坛牛人加入(self):
        a.return_back()
        a.click_T('牛人')
        a.click_R('com.truckhome.bbs:id/cattle_regiment_label_join_iv')
        a.click_R('com.truckhome.bbs:id/news_share')
        a.click_T('复制链接')

    @testcase
    def test_11_论坛推荐(self):
        a.return_back()
        a.click_T('推荐')
        a.click_R('com.truckhome.bbs:id/tv_forum_common_title')
        a.click_T('分享')
        a.click_T('复制链接')

    @testcase
    def test_12_论坛最新(self):
        a.return_back()
        a.click_T('最新')
        a.click_R('com.truckhome.bbs:id/tv_forum_newest_title')
        a.click_T('分享')
        a.click_T('复制链接')

    @testcase
    def test_13_论坛视频(self):
        a.return_back()
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('分享')
        a.click_T('复制链接')

    @testcase
    def test_14_卡友圈推荐列表(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('推荐')
        a.huaDongChaZhao()
        a.click_R('com.truckhome.bbs:id/lay_app_forward')
        a.click_T('复制链接')

    @testcase
    def test_15_卡友圈最新列表(self):
        a.return_back()
        a.click_T('最新')
        a.click_R('com.truckhome.bbs:id/lay_app_forward')
        a.click_T('复制链接')

    @testcase
    def test_16_卡友圈视频列表(self):
        a.return_back()
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/lay_app_forward')
        a.click_T('复制链接')

    @testcase
    def test_17_卡友圈附近列表(self):
        a.return_back()
        a.click_T('附近')
        a.click_R('com.truckhome.bbs:id/lay_app_forward')
        a.click_T('复制链接')

    def test_18_卡友圈推荐详情(self):
        a.return_back()
        a.click_T('推荐')
        a.huaDongChaZhao()
        a.click_R('com.truckhome.bbs:id/lay_item')
        a.click_R('com.truckhome.bbs:id/lay_app_forward')
        a.click_T('复制链接')

    @testcase
    def test_19_卡友圈最新详情(self):
        a.return_back()
        a.click_T('最新')
        a.click_R('com.truckhome.bbs:id/iv_comment')
        a.click_R('com.truckhome.bbs:id/lay_app_forward')
        a.click_T('复制链接')

    @testcase
    def test_20_卡友圈视频详情(self):
        a.return_back()
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/tv_count_comment')
        a.click_R('com.truckhome.bbs:id/lay_app_forward')
        a.click_T('复制链接')

    @testcase
    def test_21_卡友圈附近详情(self):
        a.return_back()
        a.click_T('附近')
        a.click_R('com.truckhome.bbs:id/tv_count_comment')
        a.click_R('com.truckhome.bbs:id/lay_app_forward')
        a.click_T('复制链接')
class 登陆入口检查(unittest.TestCase, BasePage):
    #本用例包含安装App、启动、初始app、检查正常登陆、退出功能
    global a
    a = AppatxLibrary()

    @classmethod
    @setupclass
    def setUpClass(cls):
        cls.a = AppatxLibrary()
        cls.a.clear_app()
        cls.a.open_app()
        cls.a.chu_shi()

    @testcase
    def test_01_新闻(self):
        a.click_T('首页')
        a.click_T('新闻')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('发表我的看法...')
        a.cha_T('立即注册')

    @testcase
    def test_02_视频(self):
        a.return_back()
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/layout_item')
        a.click_T('发表我的看法...')
        a.cha_T('立即注册')

    @testcase
    def test_03_图片(self):
        a.return_back()
        a.click_T('图片')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('发表我的看法...')
        a.cha_T('立即注册')

    @testcase
    def test_04_行情(self):
        a.return_back()
        a.click_T('行情')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_R('com.truckhome.bbs:id/comment_tv')
        a.cha_T('立即注册')

    @testcase
    def test_05_养车(self):
        a.return_back()
        a.click_T('养车')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_R('com.truckhome.bbs:id/comment_tv')
        a.cha_T('立即注册')

    @testcase
    def test_06_评测(self):
        a.return_back()
        a.click_T('评测')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_R('com.truckhome.bbs:id/comment_tv')
        a.cha_T('立即注册')

    @testcase
    def test_07_政策(self):
        a.return_back()
        a.click_T('政策')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_R('com.truckhome.bbs:id/comment_tv')
        a.cha_T('立即注册')

    @testcase
    def test_08_物流(self):
        a.return_back()
        a.click_T('物流')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('发表我的看法...')
        a.cha_T('立即注册')

    @testcase
    def test_09_论坛推荐(self):
        a.return_back()
        a.click_T('论坛')
        a.click_T('推荐')
        a.click_T('添加圈子')
        a.cha_T('立即注册')

    @testcase
    def test_10_论坛我的消息系统通知(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/layout_forum_msg')
        a.click_T('系统通知')
        a.cha_T('立即注册')

    @testcase
    def test_11_论坛我的消息私信消息(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/layout_forum_msg')
        a.click_T('私信消息')
        a.cha_T('立即注册')

    @testcase
    def test_12_论坛我的消息赞我的(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/layout_forum_msg')
        a.click_T('赞我的')
        a.cha_T('立即注册')

    @testcase
    def test_13_论坛我的消息关注我的(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/layout_forum_msg')
        a.click_T('关注我的')
        a.cha_T('立即注册')

    @testcase
    def test_14_论坛关注(self):
        a.return_back()
        a.click_T('关注')
        a.click_R('com.truckhome.bbs:id/touxiang')
        a.cha_T('立即注册')

    @testcase
    def test_15_论坛发帖(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_forum_post')
        a.click_T('发帖子')
        a.cha_T('立即注册')

    @testcase
    def test_16_论坛求助(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_forum_post')
        a.click_T('发求助')
        a.cha_T('立即注册')

    @testcase
    def test_17_论坛牛人(self):
        a.return_back()
        a.click_T('牛人')
        a.click_R('com.truckhome.bbs:id/forum_user_info_layout')
        a.cha_T('立即注册')

    @testcase
    def test_18_卡友圈关注(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('关注')
        a.click_T('立即登录')
        a.cha_T('立即注册')

    @testcase
    def test_19_卡友圈推荐关注(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('推荐')
        a.click_R('com.truckhome.bbs:id/truck_friends_circle_admin_setting_iv')
        a.cha_T('立即注册')

    @testcase
    def test_20_卡友圈视频关注(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/truck_friends_circle_admin_setting_iv')
        a.cha_T('立即注册')

    @testcase
    def test_21_卡友圈附近关注(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('附近')
        a.click_R('com.truckhome.bbs:id/truck_friends_circle_admin_setting_iv')
        a.cha_T('立即注册')

    @testcase
    def test_22_卡友圈集赞达人(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_R('com.truckhome.bbs:id/iv_recommend')
        a.click_R('com.truckhome.bbs:id/iv_liked_header1')
        a.cha_T('立即注册')

    @testcase
    def test_23_卡友圈头像(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_R('com.truckhome.bbs:id/iv_header')
        a.cha_T('立即注册')

    @testcase
    def test_24_卡友圈推荐详情关注(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('推荐')
        a.click_R('com.truckhome.bbs:id/lay_item')
        a.click_R('com.truckhome.bbs:id/truck_friends_circle_img_guanzhu')
        a.cha_T('立即注册')

    @testcase
    def test_25_卡友圈最新详情关注(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('最新')
        a.click_R('com.truckhome.bbs:id/iv_comment')
        a.click_R('com.truckhome.bbs:id/truck_friends_circle_img_guanzhu')
        a.cha_T('立即注册')

    @testcase
    def test_26_卡友圈视频详情关注(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/tv_content')
        a.click_R('com.truckhome.bbs:id/truck_friends_circle_img_guanzhu')
        a.cha_T('立即注册')

    @testcase
    def test_27_卡友圈附近详情关注(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('附近')
        a.click_R('com.truckhome.bbs:id/iv_comment')
        a.click_R('com.truckhome.bbs:id/truck_friends_circle_img_guanzhu')
        a.cha_T('立即注册')

    @testcase
    def test_28_卡友圈推荐详情评论(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('推荐')
        a.click_R('com.truckhome.bbs:id/lay_item')
        a.click_T('写评论')
        a.cha_T('立即注册')

    @testcase
    def test_29_卡友圈最新详情评论(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('最新')
        a.click_R('com.truckhome.bbs:id/iv_comment')
        a.click_T('写评论')
        a.cha_T('立即注册')

    @testcase
    def test_30_卡友圈视频详情评论(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/tv_content')
        a.click_T('写评论')
        a.cha_T('立即注册')

    @testcase
    def test_31_卡友圈附近详情评论(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('附近')
        a.click_R('com.truckhome.bbs:id/iv_comment')
        a.click_T('写评论')
        a.cha_T('立即注册')

    @testcase
    def test_32_卡友圈推荐详情点赞(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('推荐')
        a.click_R('com.truckhome.bbs:id/lay_item')
        a.click_R('com.truckhome.bbs:id/lay_like')
        a.cha_T('立即注册')

    @testcase
    def test_33_卡友圈最新详情点赞(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('最新')
        a.click_R('com.truckhome.bbs:id/iv_comment')
        a.click_R('com.truckhome.bbs:id/lay_like')
        a.cha_T('立即注册')

    @testcase
    def test_34_卡友圈视频详情点赞(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/tv_content')
        a.click_R('com.truckhome.bbs:id/lay_like')
        a.cha_T('立即注册')

    @testcase
    def test_35_卡友圈附近详情点赞(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('附近')
        a.click_R('com.truckhome.bbs:id/iv_comment')
        a.click_R('com.truckhome.bbs:id/lay_like')
        a.cha_T('立即注册')

    @testcase
    def test_36_发布卡友圈(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('推荐')
        a.click_R('com.truckhome.bbs:id/iv_ciriv_circle_postcle_post')
        a.cha_T('立即注册')
class 首页固定元素检查(unittest.TestCase, BasePage):
    #本用例包含安装App、启动、初始app、检查正常登陆、退出功能
    global a
    a = AppatxLibrary()

    @classmethod
    @setupclass
    def setUpClass(cls):
        cls.a = AppatxLibrary()
        cls.a.clear_app()
        cls.a.open_app()
        cls.a.chu_shi()

    @testcase
    def test_01_推荐全部(self):
        a.cha_T('全部')

    @testcase
    def test_02_推荐轮播图(self):
        a.cha_R('com.truckhome.bbs:id/focus_map_ad_iv')  #轮播图

    @testcase
    def test_03_推荐全部资讯(self):
        a.click_T('全部')
        a.cha_T('资讯')

    @testcase
    def test_04_推荐全部新闻专题(self):
        a.cha_T('新闻专题')  #新闻专题

    @testcase
    def test_05_推荐全部专题(self):
        a.cha_T('专题')  #专题

    @testcase
    def test_06_推荐全部商城询价(self):
        a.cha_T('商城询价')  #商城询价

    @testcase
    def test_07_推荐全部优选尿素(self):
        a.cha_T('优选尿素')  #优选尿素

    @testcase
    def test_08_推荐全部优惠购车(self):
        a.cha_T('优惠购车')  #优惠购车

    @testcase
    def test_09_推荐全部挂车集市(self):
        a.cha_T('挂车集市')  #挂车集市

    @testcase
    def test_10_推荐全部二手车(self):
        a.cha_T('二手车')  #二手车

    @testcase
    def test_11_推荐全部挂车选购(self):
        a.cha_T('挂车选购')  #挂车选购

    @testcase
    def test_12_推荐全部挂靠黄页(self):
        a.cha_T('挂靠黄页')  #挂靠黄页

    @testcase
    def test_13_推荐全部看图选车(self):
        a.cha_T('看图选车')  #看图选车

    @testcase
    def test_14_推荐全部卡友服务(self):
        a.cha_T('卡友服务')  #卡友服务

    @testcase
    def test_15_推荐全部司机招聘(self):
        a.huaDongChaZhao()
        a.cha_T('司机招聘')  #司机招聘

    @testcase
    def test_16_推荐全部求助(self):
        a.cha_T('求助')  #求助

    @testcase
    def test_17_推荐全部附近商家(self):
        a.cha_T('附近商家')  #附近商家

    @testcase
    def test_18_推荐全部安全随行(self):
        a.cha_T('安全随行')  #安全随行

    @testcase
    def test_19_推荐全部附近卡友(self):
        a.cha_T('附近卡友')  #附近卡友

    @testcase
    def test_20_推荐全部附近经销商(self):
        a.cha_T('附近经销商')  #附近经销商

    @testcase
    def test_21_推荐全部附近服务站(self):
        a.cha_T('附近服务站')  #附近服务站

    @testcase
    def test_22_推荐全部活动(self):
        a.cha_T('活动')  #活动

    @testcase
    def test_23_推荐全部购车计算器(self):
        a.cha_T('购车计算器')  #购车计算器

    @testcase
    def test_24_推荐全部快运贷(self):
        a.cha_T('快运贷')  #快运贷

    @testcase
    def test_25_推荐全部1(self):
        a.cha_T('司机险')  #司机险

    @testcase
    def test_26_资讯新闻标题(self):
        a.return_back()
        a.click_T('新闻')
        a.cha_R('com.truckhome.bbs:id/tv_title')  #标题

    @testcase
    def test_27_资讯新闻类型(self):
        a.cha_R('com.truckhome.bbs:id/tv_type')  #类型

    @testcase
    def test_28_资讯新闻评论(self):
        a.cha_R('com.truckhome.bbs:id/tv_count_comment')  #评论

    @testcase
    def test_29_资讯新闻图片(self):
        a.cha_R('com.truckhome.bbs:id/iv_news')  #图片

    @testcase
    def test_30_资讯视频标题(self):
        a.return_back()
        a.click_T('视频')
        a.cha_R('com.truckhome.bbs:id/tv_title')  #标题

    @testcase
    def test_31_资讯视频类型(self):
        a.cha_R('com.truckhome.bbs:id/tv_type')  #类型

    @testcase
    def test_32_资讯视频评论(self):
        a.cha_R('com.truckhome.bbs:id/tv_count_comment')  #评论

    @testcase
    def test_33_资讯视频播放数(self):
        a.cha_R('com.truckhome.bbs:id/tv_count_play')  #播放数
        a.cha_R('com.truckhome.bbs:id/iv_image')  #播放数

    @testcase
    def test_34_资讯图片标题(self):
        a.return_back()
        a.click_T('图片')
        a.cha_R('com.truckhome.bbs:id/tv_title')  #标题

    @testcase
    def test_35_资讯图片类型(self):
        a.cha_R('com.truckhome.bbs:id/tv_type')  #类型

    @testcase
    def test_36_资讯图片评论(self):
        a.cha_R('com.truckhome.bbs:id/tv_count_comment')  #评论

    @testcase
    def test_37_资讯图片查看数(self):
        a.cha_R('com.truckhome.bbs:id/tv_count_play')  #查看数
        a.cha_R('com.truckhome.bbs:id/iv_image')  #查看数

    @testcase
    def test_38_资讯行情地区(self):
        a.return_back()
        a.click_T('行情')
        a.cha_R('com.truckhome.bbs:id/ll_location')  #地区

    @testcase
    def test_39_资讯行情标题(self):
        a.cha_R('com.truckhome.bbs:id/tv_title')  #标题

    @testcase
    def test_40_资讯行情类型(self):
        a.cha_R('com.truckhome.bbs:id/tv_type')  #类型

    @testcase
    def test_41_资讯行情评论(self):
        a.cha_R('com.truckhome.bbs:id/tv_count_comment')  #评论

    @testcase
    def test_42_资讯行情图片(self):
        a.cha_R('com.truckhome.bbs:id/iv_news')  #图片

    @testcase
    def test_43_资讯导购类型筛选(self):
        a.return_back()
        a.click_T('导购')
        a.cha_R('com.truckhome.bbs:id/tv_type')  #类型筛选

    @testcase
    def test_44_资讯导购品牌筛选(self):
        a.cha_R('com.truckhome.bbs:id/tv_brand')  #品牌筛选

    @testcase
    def test_45_资讯导购价格筛选(self):
        a.cha_R('com.truckhome.bbs:id/tv_price')  #价格筛选

    @testcase
    def test_46_资讯导购地区(self):
        a.cha_R('com.truckhome.bbs:id/tv_location_city')  #地区

    @testcase
    def test_47_资讯导购标题(self):
        a.cha_R('com.truckhome.bbs:id/article_title_tv')  #标题

    @testcase
    def test_48_资讯导购类型(self):
        a.cha_R('com.truckhome.bbs:id/article_tv_type')  #类型

    @testcase
    def test_49_资讯导购价格(self):
        a.cha_R('com.truckhome.bbs:id/article_price')  #价格

    @testcase
    def test_50_资讯导购图片(self):
        a.cha_R('com.truckhome.bbs:id/article_iv')  #图片

    @testcase
    def test_51_资讯养车标题(self):
        a.return_back()
        a.click_T('养车')
        a.cha_R('com.truckhome.bbs:id/tv_title')  #标题

    @testcase
    def test_52_资讯养车类型(self):
        a.cha_R('com.truckhome.bbs:id/tv_type')  #类型

    @testcase
    def test_53_资讯养车评论(self):
        a.cha_R('com.truckhome.bbs:id/tv_count_comment')  #评论

    @testcase
    def test_54_资讯养车图片(self):
        a.cha_R('com.truckhome.bbs:id/iv_news')  #图片

    @testcase
    def test_55_资讯评测标题(self):
        a.return_back()
        a.click_T('评测')
        a.cha_R('com.truckhome.bbs:id/tv_title')  #标题

    @testcase
    def test_56_资讯评测类型(self):
        a.cha_R('com.truckhome.bbs:id/tv_type')  #类型

    @testcase
    def test_57_资讯评测评论(self):
        a.cha_R('com.truckhome.bbs:id/tv_count_comment')  #评论

    @testcase
    def test_58_资讯评测图片(self):
        a.cha_R('com.truckhome.bbs:id/iv_news')  #图片

    @testcase
    def test_59_资讯政策标题(self):
        a.return_back()
        a.click_T('政策')
        a.cha_R('com.truckhome.bbs:id/tv_title')  #标题

    @testcase
    def test_60_资讯政策类型(self):
        a.cha_R('com.truckhome.bbs:id/tv_type')  #类型

    @testcase
    def test_61_资讯政策评论(self):
        a.cha_R('com.truckhome.bbs:id/tv_count_comment')  #评论

    @testcase
    def test_62_资讯政策图片(self):
        a.cha_R('com.truckhome.bbs:id/iv_news')  #图片

    @testcase
    def test_63_资讯政策标题(self):
        a.return_back()
        a.click_T('政策')
        a.cha_R('com.truckhome.bbs:id/tv_title')  #标题

    @testcase
    def test_64_资讯政策类型(self):
        a.cha_R('com.truckhome.bbs:id/tv_type')  #类型

    @testcase
    def test_65_资讯政策评论(self):
        a.cha_R('com.truckhome.bbs:id/tv_count_comment')  #评论

    @testcase
    def test_66_资讯政策图片(self):
        a.cha_R('com.truckhome.bbs:id/iv_news')  #图片

    @testcase
    def test_67_资讯物流标题(self):
        a.return_back()
        a.click_T('物流')
        a.cha_R('com.truckhome.bbs:id/tv_title')  #标题

    @testcase
    def test_68_资讯物流类型(self):
        a.cha_R('com.truckhome.bbs:id/tv_type')  #类型

    @testcase
    def test_69_资讯物流评论(self):
        a.cha_R('com.truckhome.bbs:id/tv_count_comment')  #评论

    @testcase
    def test_70_资讯物流图片(self):
        a.cha_R('com.truckhome.bbs:id/iv_news')  #图片

    @testcase
    def test_71_资讯音频标题(self):
        a.return_back()
        a.click_T('音频')
        a.cha_R('com.truckhome.bbs:id/audio_title_tv')  #标题

    @testcase
    def test_72_资讯音频图片(self):
        a.cha_R('com.truckhome.bbs:id/audio_iv')  #图片

    @testcase
    def test_73_资讯音频播放数(self):
        a.cha_R('com.truckhome.bbs:id/audio_play_count_tv')  #播放数

    @testcase
    def test_74_资讯音频播放按钮(self):
        a.cha_R('com.truckhome.bbs:id/audio_play_iv')  #播放按钮
Example #8
0
class 点赞检查(unittest.TestCase, BasePage):
    #本用例包含安装App、启动、初始app、检查正常登陆、退出功能
    global a
    a = AppatxLibrary()

    @classmethod
    @setupclass
    def setUpClass(cls):
        cls.a = AppatxLibrary()
        cls.a.clear_app()
        cls.a.open_app()
        cls.a.chu_shi()
        cls.a.login('test1191', 'z123456z')

    @testcase
    def test_01_资讯新闻点赞(self):
        a.return_back()
        a.click_T('首页')
        a.click_T('新闻')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('点赞')
        a.cha_T('已赞')

    @testcase
    def test_02_资讯视频点赞(self):
        a.return_back()
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/layout_item')
        a.click_T('点赞')
        a.cha_T('已赞')

    @testcase
    def test_03_资讯图片点赞(self):
        a.return_back()
        a.click_T('图片')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('点赞')
        a.cha_T('已赞')

    @testcase
    def test_04_资讯行情点赞(self):
        a.return_back()
        a.click_T('行情')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('点赞')
        a.cha_T('已赞')

    @testcase
    def test_05_资讯养车点赞(self):
        a.return_back()
        a.click_T('养车')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('点赞')
        a.cha_T('已赞')

    @testcase
    def test_06_资讯评测点赞(self):
        a.return_back()
        a.click_T('评测')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('点赞')
        a.cha_T('已赞')

    @testcase
    def test_07_资讯政策点赞(self):
        a.return_back()
        a.click_T('政策')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('点赞')
        a.cha_T('已赞')

    @testcase
    def test_08_资讯物流点赞(self):
        a.return_back()
        a.click_T('物流')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_T('点赞')
        a.cha_T('已赞')

    @testcase
    def test_09_论坛帖子点赞(self):
        a.return_back()
        a.click_T('论坛')
        a.click_T('最新')
        a.click_R('com.truckhome.bbs:id/tv_forum_newest_title')
        a.click_T('点赞')
        a.cha_T('已赞')

    @testcase
    def test_10_卡友圈推荐点赞(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('推荐')
        a.click_R('com.truckhome.bbs:id/tv_content')
        a.click_T('点赞')
        a.cha_T('已赞')

    @testcase
    def test_11_卡友圈最新点赞(self):
        a.return_back()
        a.click_T('最新')
        a.click_R('com.truckhome.bbs:id/tv_count_comment')
        a.click_R('com.truckhome.bbs:id/tv_zan_state')
        a.cha_T('已赞')

    @testcase
    def test_12_卡友圈视频点赞(self):
        a.return_back()
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/tv_count_comment')
        a.click_R('com.truckhome.bbs:id/tv_zan_state')
        a.cha_T('已赞')

    @testcase
    def test_13_卡友圈附近点赞(self):
        a.return_back()
        a.click_T('附近')
        a.click_R('com.truckhome.bbs:id/tv_count_comment')
        a.click_R('com.truckhome.bbs:id/tv_zan_state')
        a.cha_T('已赞')

    @testcase
    def test_14_卡友圈关注点赞(self):
        a.return_back()
        a.click_T('关注')
        a.click_R('com.truckhome.bbs:id/tv_count_comment')
        a.click_R('com.truckhome.bbs:id/tv_zan_state')
        a.cha_T('已赞')
class 卡友圈固定元素检查(unittest.TestCase, BasePage):
    #本用例包含安装App、启动、初始app、检查正常登陆、退出功能
    global a
    a = AppatxLibrary()
    
    @classmethod
    @setupclass
    def setUpClass(cls):
        cls.a = AppatxLibrary()
        cls.a.clear_app()
        cls.a.open_app()
        cls.a.chu_shi()

    @testcase
    def test_01_卡友圈推荐热议话题(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('推荐')
        a.cha_T('热议话题')   

    @testcase
    def test_02_卡友圈推荐热议话题一(self):
        a.cha_R('com.truckhome.bbs:id/img_one')

    @testcase
    def test_03_卡友圈推荐热议话题二(self):
        a.cha_R('com.truckhome.bbs:id/img_two')

    @testcase
    def test_04_卡友圈推荐热议话题三(self):
        a.cha_R('com.truckhome.bbs:id/img_three')

    @testcase
    def test_05_卡友圈推荐热议话题四(self):
        a.cha_R('com.truckhome.bbs:id/img_four')

    @testcase
    def test_06_卡友圈推荐热议话题一(self):
        a.cha_R('com.truckhome.bbs:id/img_one')

    @testcase
    def test_07_卡友圈推荐热议全部(self):
        a.cha_T('全部')

    @testcase
    def test_08_卡友圈推荐添加好友按钮(self):
        a.cha_R('com.truckhome.bbs:id/iv_recommend')#添加好友按钮

    @testcase
    def test_09_卡友圈最新关注按钮(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('最新')
        a.cha_R('com.truckhome.bbs:id/truck_friends_circle_admin_setting_iv') #关注按钮   

    @testcase
    def test_10_卡友圈最新昵称(self):
        a.cha_R('com.truckhome.bbs:id/tv_name') #昵称

    @testcase
    def test_11_卡友圈最新等级(self):
        a.cha_R('com.truckhome.bbs:id/img_level') #等级

    @testcase
    def test_12_卡友圈最新关注粉丝数(self):
        a.cha_R('com.truckhome.bbs:id/tv_time') #关注粉丝数

    @testcase
    def test_13_卡友圈最新头像(self):
        a.cha_R('com.truckhome.bbs:id/iv_header') #头像

    @testcase
    def test_14_卡友圈最新转发按钮(self):
        a.cha_R('com.truckhome.bbs:id/iv_app_forward') #转发按钮

    @testcase
    def test_15_卡友圈最新评论按钮(self):
        a.cha_R('com.truckhome.bbs:id/iv_comment') #评论按钮

    @testcase
    def test_16_卡友圈最新赞按钮(self):
        a.cha_R('com.truckhome.bbs:id/iv_like_nor') #赞按钮

    @testcase
    def test_17_卡友圈视频关注按钮(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('视频')
        a.cha_R('com.truckhome.bbs:id/truck_friends_circle_admin_setting_iv') #关注按钮

    @testcase
    def test_18_卡友圈视频昵称(self):
        a.cha_R('com.truckhome.bbs:id/tv_name') #昵称

    @testcase
    def test_19_卡友圈视频等级(self):
        a.cha_R('com.truckhome.bbs:id/img_level') #等级

    @testcase
    def test_20_卡友圈视频关注粉丝数(self):
        a.cha_R('com.truckhome.bbs:id/tv_time') #关注粉丝数

    @testcase
    def test_21_卡友圈视频头像(self):
        a.cha_R('com.truckhome.bbs:id/iv_header') #头像

    @testcase
    def test_22_卡友圈视频转发按钮(self):
        a.cha_R('com.truckhome.bbs:id/iv_app_forward') #转发按钮

    @testcase
    def test_23_卡友圈视频评论按钮(self):
        a.cha_R('com.truckhome.bbs:id/iv_comment') #评论按钮

    @testcase
    def test_24_卡友圈视频赞按钮(self):
        a.cha_R('com.truckhome.bbs:id/iv_like_nor') #赞按钮

    @testcase
    def test_25_卡友圈视频视频封面(self):
        a.cha_R('com.truckhome.bbs:id/surface_container') #视频封面        

    @testcase
    def test_26_卡友圈附近关注按钮(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('最新')
        a.cha_R('com.truckhome.bbs:id/truck_friends_circle_admin_setting_iv') #关注按钮        

    @testcase
    def test_27_卡友圈附近昵称(self):
        a.cha_R('com.truckhome.bbs:id/tv_name') #昵称

    @testcase
    def test_28_卡友圈附近等级(self):
        a.cha_R('com.truckhome.bbs:id/img_level') #等级

    @testcase
    def test_29_卡友圈附近关注粉丝数(self):
        a.cha_R('com.truckhome.bbs:id/tv_time') #关注粉丝数

    @testcase
    def test_30_卡友圈附近头像(self):
        a.cha_R('com.truckhome.bbs:id/iv_header') #头像

    @testcase
    def test_31_卡友圈附近转发按钮(self):
        a.cha_R('com.truckhome.bbs:id/iv_app_forward') #转发按钮
        a.cha_R('com.truckhome.bbs:id/iv_comment') #评论按钮
        a.cha_R('com.truckhome.bbs:id/iv_like_nor') #赞按钮
class 收藏检查(unittest.TestCase, BasePage):
    #本用例包含安装App、启动、初始app、检查正常登陆、退出功能
    global a
    a = AppatxLibrary()

    @classmethod
    @setupclass
    def setUpClass(cls):
        cls.a = AppatxLibrary()
        cls.a.clear_app()
        cls.a.open_app()
        cls.a.chu_shi()
        cls.a.login('test1191', 'z123456z')

    @testcase
    def test_01_资讯新闻收藏(self):
        a.return_back()
        a.click_T('首页')
        a.click_T('新闻')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('收藏')

    @testcase
    def test_02_资讯取消新闻收藏(self):
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('取消收藏')

    @testcase
    def test_03_资讯视频收藏(self):
        a.return_back()
        a.click_T('视频')
        a.click_R('com.truckhome.bbs:id/layout_item')
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('收藏')

    @testcase
    def test_04_资讯取消视频收藏(self):
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('取消收藏')

    @testcase
    def test_05_资讯图片收藏(self):
        a.return_back()
        a.click_T('图片')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('收藏')

    @testcase
    def test_06_资讯取消图片收藏(self):
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('取消收藏')

    @testcase
    def test_07_资讯行情收藏(self):
        a.return_back()
        a.click_T('行情')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('收藏')

    @testcase
    def test_08_资讯取消行情收藏(self):
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('取消收藏')

    @testcase
    def test_09_资讯养车收藏(self):
        a.return_back()
        a.click_T('养车')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('收藏')

    @testcase
    def test_10_资讯取消养车收藏(self):
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('取消收藏')

    @testcase
    def test_11_资讯评测收藏(self):
        a.return_back()
        a.click_T('评测')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('收藏')

    @testcase
    def test_12_资讯取消评测收藏(self):
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('取消收藏')

    @testcase
    def test_13_资讯政策收藏(self):
        a.return_back()
        a.click_T('政策')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('收藏')

    @testcase
    def test_14_资讯取消政策收藏(self):
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('取消收藏')

    @testcase
    def test_15_资讯物流收藏(self):
        a.return_back()
        a.click_T('物流')
        a.click_R('com.truckhome.bbs:id/tv_title')
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('收藏')

    @testcase
    def test_16_资讯取消物流收藏(self):
        a.click_R('com.truckhome.bbs:id/iv_more')
        a.click_T('取消收藏')

    @testcase
    def test_17_卡友圈动态收藏(self):
        a.return_back()
        a.click_R('com.truckhome.bbs:id/iv_friends_circle')
        a.click_T('最新')
        a.click_R('com.truckhome.bbs:id/tv_count_comment')
        a.click_R('com.truckhome.bbs:id/toolBar_iv_set')
        a.click_T('添加收藏')

    @testcase
    def test_18_卡友圈取消动态收藏(self):
        a.click_R('com.truckhome.bbs:id/toolBar_iv_set')
        a.click_T('取消收藏')
Example #11
0
class 论坛固定元素检查(unittest.TestCase, BasePage):
    #本用例包含安装App、启动、初始app、检查正常登陆、退出功能
    global a
    a = AppatxLibrary()
    
    @classmethod
    @setupclass
    def setUpClass(cls):
        cls.a = AppatxLibrary()
        cls.a.clear_app()
        cls.a.open_app()
        cls.a.chu_shi()

    @testcase
    def test_01_论坛列表关注(self):
        a.click_T('论坛')
        a.click_T('推荐')
        a.cha_T('关注')

    @testcase
    def test_02_论坛列表推荐(self):
        a.cha_T('推荐')

    @testcase
    def test_03_论坛列表最新(self):
        a.cha_T('最新')

    @testcase
    def test_04_论坛列表求助(self):
        a.cha_T('求助')

    @testcase
    def test_05_论坛列表十大热帖(self):
        a.cha_T('十大热帖')

    @testcase
    def test_06_论坛列表牛人(self):
        a.cha_T('牛人')

    @testcase
    def test_07_论坛列表视频(self):
        a.cha_T('视频')

    @testcase
    def test_08_论坛推荐求助问答(self):
        a.return_back()
        a.click_T('论坛')
        a.click_T('推荐')
        a.cha_T('求助问答')

    @testcase
    def test_09_论坛推荐活动标题(self):
        a.cha_R('com.truckhome.bbs:id/forum_recommend_activity_title_tv') #活动标题

    @testcase
    def test_10_论坛推荐查看全部(self):
        a.cha_T('查看全部')

    @testcase
    def test_11_论坛推荐标题(self):
        a.cha_R('com.truckhome.bbs:id/tv_forum_common_title') #标题

    @testcase
    def test_12_论坛推荐发帖人昵称(self):
        a.cha_R('com.truckhome.bbs:id/tv_forum_common_author') #发帖人昵称

    @testcase
    def test_13_论坛推荐查看回帖数(self):
        a.cha_R('com.truckhome.bbs:id/tv_forum_common_count') #查看回帖数

    @testcase
    def test_14_论坛推荐发帖按钮(self):
        a.cha_R('com.truckhome.bbs:id/iv_forum_post') #查看回帖数

    @testcase
    def test_15_论坛推荐发帖按钮(self):
        a.cha_R('com.truckhome.bbs:id/iv_forum_post') #查看回帖数

    @testcase
    def test_16_论坛推荐发帖按钮(self):
        a.cha_R('com.truckhome.bbs:id/iv_forum_post') #发帖按钮

    @testcase
    def test_17_论坛推荐发帖子(self):
        a.click_R('com.truckhome.bbs:id/iv_forum_post')
        a.cha_T('发帖子') #发帖子按钮

    @testcase
    def test_18_论坛推荐发帖子(self):
        a.click_R('com.truckhome.bbs:id/iv_forum_post')
        a.cha_T('发求助') #发求助按钮

    @testcase
    def test_19_论坛最新标题(self):
        a.return_back()
        a.click_T('论坛')
        a.click_T('最新')
        a.cha_R('com.truckhome.bbs:id/tv_forum_newest_title') #标题

    @testcase
    def test_20_论坛最新昵称(self):
        a.cha_R('com.truckhome.bbs:id/tv_forum_newest_nickname') #昵称

    @testcase
    def test_21_论坛最新浏览观看数(self):
        a.cha_R('com.truckhome.bbs:id/tv_forum_newest_count') #浏览观看数

    @testcase
    def test_22_论坛求助标题(self):
        a.return_back()
        a.click_T('论坛')
        a.click_T('求助')
        a.cha_R('com.truckhome.bbs:id/tv_tribune_sos_content') #标题

    @testcase
    def test_23_论坛求助类型(self):
        a.cha_R('com.truckhome.bbs:id/tv_tribune_sos_tag') #类型

    @testcase
    def test_24_论坛求助帮助数(self):
        a.cha_R('com.truckhome.bbs:id/tv_tribune_sos_help_num') #帮助数

    @testcase
    def test_25_论坛十大热帖日期(self):
        a.click_T('十大热帖')
        a.cha_R('com.truckhome.bbs:id/ten_hot_post_date_tv') #日期

    @testcase
    def test_26_论坛牛人我要加入(self):
        a.click_T('牛人')
        a.cha_R('com.truckhome.bbs:id/cattle_regiment_label_join_iv') #我要加入按钮

    @testcase
    def test_27_论坛视频标题(self):
        a.return_back()
        a.click_T('论坛')
        a.click_T('视频')
        a.cha_R('com.truckhome.bbs:id/tv_title') #标题

    @testcase
    def test_28_论坛视频封面(self):
        a.cha_R('com.truckhome.bbs:id/iv_video') #封面

    @testcase
    def test_29_论坛视频发帖人昵称(self):
        a.cha_R('com.truckhome.bbs:id/tv_user_name') #发帖人昵称

    @testcase
    def test_30_论坛视频回帖数(self):
        a.cha_R('com.truckhome.bbs:id/tv_join_repaly') #回帖数