def test_Product_Classify(self): u"""商品信息""" login_user(self, LoginName=u'zhangyang1', LoginPwd=u"960418") Operation_Center(self) Fixed_Window(self) Selection_Menu(self, Operation_path().Product_Management) ActionChains(self.browser).send_keys(Keys.PAGE_DOWN).perform() Selection_Menu(self, Product_Management_path().Product_Message) is_frame_page(self, Product_Management_frame().Product_Message_frame) # 添加商品 self.Add_product_information() self.Add_product_parameters(name="品牌", value="苏泊尔") self.Add_product_specification(name="商品颜色", value1="贵族金", value2="天空蓝") self.Add_product_stock(sales='1888', cost='1688', market='2088', integral='1888', stock='0') # 删除商品 # self.Delete_product_information() # 上下架 # self.Choose_product_information() # self.Grounding_product_information() # self.Choose_product_information() # self.Undercarriage_product_information() # 查询 self.Query_product_information()
def test_product_evaluate(self): login_user(self, LoginName=u'zhangyang1', LoginPwd=u"960418") Operation_Center(self) Fixed_Window(self) Selection_Menu(self, Operation_path().Product_Management) ActionChains(self.browser).send_keys(Keys.PAGE_DOWN).perform() Selection_Menu(self, Product_Management_path().Product_Evaluate) is_frame_page(self, Product_Management_frame().Product_Evaluate_frame) self.check_product_evaluate()
def test_query_Activity(self): u"""查询活动""" login_user(self, LoginName=u'zhangyang1', LoginPwd=u"960418") Operation_Center(self) Fixed_Window(self) Selection_Menu(self, Operation_path().Production_Management) ActionChains(self.browser).send_keys(Keys.PAGE_DOWN).perform() Selection_Menu(self, Production_Management_path().Activity) is_frame_page(self, Production_Management_frame().Activity_frame) self.query_activity(name='未开始')
def test_add_Activity(self): u"""添加活动""" login_user(self, LoginName=u'zhangyang1', LoginPwd=u"960418") Operation_Center(self) Fixed_Window(self) Selection_Menu(self, Operation_path().Production_Management) ActionChains(self.browser).send_keys(Keys.PAGE_DOWN).perform() Selection_Menu(self, Production_Management_path().Activity) is_frame_page(self, Production_Management_frame().Activity_frame) self.add_activity(name='活动主题', image=10, activity_type=1, piece=1, money=1, apply_product=2, together=1, product_name='西门子')
def test_add_Home_Tag(self): u"""添加首页标签""" login_user(self, LoginName=u'zhangyang1', LoginPwd=u"960418") Operation_Center(self) Fixed_Window(self) Selection_Menu(self, Operation_path().Home_Management) ActionChains(self.browser).send_keys(Keys.PAGE_DOWN).perform() Selection_Menu(self, Home_Management_path().Home_Tag) is_frame_page(self, Home_Management_frame().Home_Tag_frame) self.add_home_tag(name="自动标签", sort=2, status=1, tag_type=1, image=6) self.add_product(name='西门子', product=1)
def test_query_Home_Tag(self): u"""首页标签查询""" login_user(self, LoginName=u'zhangyang1', LoginPwd=u"960418") Operation_Center(self) Fixed_Window(self) Selection_Menu(self, Operation_path().Home_Management) ActionChains(self.browser).send_keys(Keys.PAGE_DOWN).perform() Selection_Menu(self, Home_Management_path().Home_Tag) is_frame_page(self, Home_Management_frame().Home_Tag_frame) self.query_tag_name(name="自动标签") page_Refresh(self, Home_Tag_Path().close_menu)
def test_Transaction_Information(self): u"""交易信息""" login_user(self, LoginName=u'zhangyang1', LoginPwd=u"960418") Operation_Center(self) Fixed_Window(self) Selection_Menu(self, Operation_path().Transaction_Management) ActionChains(self.browser).send_keys(Keys.PAGE_DOWN).perform() Selection_Menu(self, Transaction_Management_path().Transaction_Information) is_frame_page( self, Transaction_Management_frame().Transaction_Information_frame) self.query_transaction_information(consignee='张阳', status='2')
def test_Product_Classify(self): u"""商品分类""" login_user(self, LoginName=u'zhangyang1', LoginPwd=u"960418") Operation_Center(self) Fixed_Window(self) Selection_Menu(self, Operation_path().Product_Management) ActionChains(self.browser).send_keys(Keys.PAGE_DOWN).perform() Selection_Menu(self, Product_Management_path().Product_Classify) is_frame_page(self, Product_Management_frame().Product_Classify_frame) # self.get_div_number() # self.Required_fields_check(case=5) self.Add_one_product_classification() self.Add_two_product_classification() self.Stick_product_classification()