seldom icon indicating copy to clipboard operation
seldom copied to clipboard

Seldom automation testing framework based on unittest

Results 110 seldom issues
Sort by recently updated
recently updated
newest added

```python import seldom from seldom import Seldom from poium import Page, Element class BaiduPage(Page): """baidu page""" search_input = Element(id_="kw") search_button = Element(id_="su") class BaiduSearchPage(Page): """ 百度搜索结果 """ search_result = Element(xpath="//div/h3/a",...

![image](https://user-images.githubusercontent.com/37758451/170485212-dc2db986-b5c6-4b2c-9919-a12b25d3be48.png) ![image](https://user-images.githubusercontent.com/37758451/170485236-4ff1ce03-ebae-4785-8973-a7d8994a3555.png) ![image](https://user-images.githubusercontent.com/37758451/170485246-fbca2fc5-fa54-4967-9255-9ee9a2251fcd.png)

搭建了一个django的后台,用来测试登录,创建测试项目 使用seldom进行测试,测试登录,增删改查测试项目。 ```python import seldom class TestPlatform(seldom.TestCase): def start(self): self.open(url="http://127.0.0.1:8000/admin/login/?next=/admin/") self.type(xpath='//*[@id="id_username"]', text="admin") self.type(xpath='//*[@id="id_password"]', text="admin") self.click(xpath='//*[@id="login-form"]/div[3]/input') # self.s = self.Session() print("一条测试用例开始") def end(self): self.quit() print("一条测试用例结束") def test_login(self): self.delete_all_cookies() self.refresh() self.wait(3) self.open(url="http://127.0.0.1:8000/admin/login/?next=/admin/")...

![image](https://user-images.githubusercontent.com/77383326/163954540-32ae8bf1-c405-48ef-8d93-3ec2ed7fbf2c.png) 有时候调试时,不希望log文件一直新增。 所以建议: log日志名称,能否支持自定义?

现在调试起来的最小单位为单个py文件,但是一个py文件有好几个case,我想单独调试却办不到。 我看了#84这个问题,里面的解决方法是在命令行单独调用,我试过有问题,我在case外有其他操作好像没有整进去。 所以想新增一个单独调试单个test_case功能 我试着改了一下代码,大概就是下面这样,代码质量可能不好,但是大概就是这个思路 runner.py文件 ``` python class TestMain(object): def __init__(self, case_name=None....... self.case_name = case_name ...... # ----- Global open browser ----- self.open_browser() if self.case_name is not None: self.TestSuits =...

seldom.db_operation 建议增加MongoDB

这个日志库有两个好处: 1. 显示报错代码位置 2. 可以以`JSON` 格式输出日志。

已查阅[seldom](https://github.com/SeldomQA/seldom)/[docs](https://github.com/SeldomQA/seldom/tree/master/docs)/platform.md文件内容。且run方法都没有提供返回值告知result或报告路径。麻烦大佬确认下这块何时能够在框架层面支持上,或指明下如何灵活处理的方式。感谢!!!

![image](https://user-images.githubusercontent.com/32947488/157788908-79b09372-f6d7-460f-9c74-11896751c5cd.png) ![image](https://user-images.githubusercontent.com/32947488/157788975-ef10267a-4706-4374-9ab8-f8ef3dc40613.png) ![image](https://user-images.githubusercontent.com/32947488/157788980-2efb3096-80f8-4587-807c-6c06b30e7963.png) 看log.py源码文件中,就有print和StreamHandler的输出。但是直接用seldom执行时,终端又是正常输出一条日志内容。这里有点困惑。 请问这个情况,框架层面是否考虑兼容处理。能够告知下如何简便处理下这个问题或情况。谢谢!!! ps: 在vscode+unitest测试框架执行,只是方便一键调试选择指定用例运行