Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Processing of table pages

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

#-*-coding:utf-8-*-# date = 2019 def 11Universe name = "yedeng" # project_name = sjkb-ui# explain: data Kanban basic function import osfrom utils.GetelementFromYaml import ReadyamlToElementfrom utils.log import Logfrom utils.Screenshot import Picturefrom testcase_utils.HandleTable import Handletableclass Basis: "Kanban basic function regression test"def _ _ init__ (self)" Driver): self.__driver = driver self.__kbgl = ReadyamlToElement (self.__driver Os.path.dirname (os.getcwd) + os.sep + "yaml" + os.sep + "projectsjkb" + os.sep + "Kbgl.yaml") self.__picture = Picture (self.__driver) def createkb (self, boardname, systemname, wide, high Boardinfo): add Custom Kanban Test: step Click the add Custom Kanban button to fill in the data Kanban operation Delete Kanban: param boardname: Kanban name: param systemname: Kanban system name: param wide: Kanban width: param high: Kanban height: param boardinfo: Kanban description Information "globalsystem = self.__kbgl.getelement (" gloabesystemname "). Text # current project name self.__kbgl .waitgetelement ("createkbbutton") .click () # wait for the new custom Kanban to appear self.__kbgl.waitgetelement ("antmodal") Log.info ("start filling in Kanban properties") self.__kbgl.getelement ("boardname") .send_keys (boardname) # determine whether the default system name of Kanban is the project name kbsystemname = self.__ Kbgl.getelement ("systemname") if kbsystemname.text! = globalsystem: Log.error ("default Kanban system name is not" + globalsystem + " Please check the page ") kbsystemname.clear () # fill in the system name of Kanban Wide, high Explain kbsystemname.send_keys (systemname) self.__kbgl.getelement ("wide"). Send_keys (wide) self.__kbgl.getelement ("high"). Send_keys (high) self.__kbgl.getelement ("boardInfo"). Send_keys (boardinfo) self.__kbgl.getelement ("definebutton"). Click () def table (self): tablethead = self._ _ kbgl.waitgetelement ("kanbantable") # print (Handletable.tablelows (tablethead). _ _ len__ ()) Handletable (self.__driver) .tabless (tablethead "/ / tbody [@ class='ant-table-tbody'] / tr [2] / td [4] / span/span [2] / a", "AI Kanban", 7, [True, 1]) .click () # print (Handletable.tablecell (tablethead, 5,7) .text)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report