12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- '''
- @File : login_page.py
- @Time : 2024/11/13 20:47:19
- @Author : dulip3ng
- @Version : 1.0
- @Desc : None
- '''
- def test_click_button(body_page, home_page):
- home_page.change_org("100.1")
- home_page.search_bill("销售订单")
- body_page.click_button("新增行")
- def test_click_sub_button(body_page):
- body_page.click_button("新增行", "插入行")
- def test_get_row_count(body_page):
- row_count = body_page.get_row_count()
- assert row_count == "3"
- def test_set_value(body_page):
- body_page.set_value(1, "物料编码", "T15B-DX14000843")
- body_page.set_value(1, "客户款式号", "123123")
- body_page.set_value(1, "生产月份", "9")
- def test_get_value(body_page):
- assert body_page.get_value(1, "物料编码") == "T15B-DX14000843"
- assert body_page.get_value(1, "客户款式号") == "123123"
- assert body_page.get_value(1, "生产月份") == "9"
- def test_click_line(body_page):
- body_page.click_line(2)
- def test_set_checked(body_page):
- body_page.set_checked(1, "控制发货数量")
- def test_change_sheet(body_page):
- body_page.change_sheet("物料数据")
- def test_set_text_in_body_head(body_page):
- body_page.set_text_in_body_head("面料规格", "123123")
- def test_set_select_in_body_head(body_page):
- body_page.set_select_in_body_head("货主类型", "供应商")
- def test_set_base_in_body_head(page, body_page):
- body_page.set_base_in_body_head("面料来源", "客供免费")
- def test_get_base_in_body_head(body_page):
- assert body_page.get_base_in_body_head("面料来源") == "客供免费"
- def test_get_text_in_body_head(body_page):
- assert body_page.get_text_in_body_head("面料规格") == "123123"
- def test_get_select_in_body_head(body_page):
- assert body_page.get_select_in_body_head("货主类型") == "供应商"
|