radiateboy / automagic Goto Github PK
View Code? Open in Web Editor NEWweb automated test platform with Python Django
Home Page: https://radiateboy.github.io/automagic/
License: GNU General Public License v2.0
web automated test platform with Python Django
Home Page: https://radiateboy.github.io/automagic/
License: GNU General Public License v2.0
在页面中输入中文添加成功后中文信息显示乱码,请问这个问题怎么解决
django operationalerror: 1045 怎么解决现在无法启动
MySQLdb._exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1")
[输入selenium进行百度搜索]
step1 打开百度首页
http://www.baidu.com
step2 百度一下
(u'id', u'kw') selenium
<Base.Action object at 0x0000000003F2AEF0> 页面中未能找到 (u'id', u'kw') 元素
<Base.Action object at 0x0000000003F2AEF0> 页面中未能找到 (u'id', u'kw') 元素
<Base.Action object at 0x0000000003F2AEF0> 页面中未能找到 (u'id', u'kw') 元素
<Base.Action object at 0x0000000003F2AEF0> 元素 (u'id', u'kw') 没有clear属性
<Base.Action object at 0x0000000003F2AEF0> 页面中未能找到 (u'id', u'kw') 元素
<Base.Action object at 0x0000000003F2AEF0> 页面中未能找到 (u'id', u'kw') 元素
<Base.Action object at 0x0000000003F2AEF0> 页面中未能找到 (u'id', u'kw') 元素
【case_5 ERROR】 step2: 'NoneType' object has no attribute 'send_keys'
result/2018-05-03/image/2018-05-03-13_53_53_5.png
运行时间:Thu May 03 13:53:53 2018
version: '2.0'
services:
mysql:
image: mysql:5.7
container_name: mysql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: autodb
MYSQL_ROOT_PASSWORD: 123456
automagic:
image: tsbc520/automagic:2.0
container_name: "automagic"
restart: always
environment:
MYSQL_USERNAME: "root"
MYSQL_PASSWORD: "123456"
MYSQL_HOST: "192.168.10.167"
MYSQL_PORT: 3306
MYSQL_DBNAME: "autodb"
ports:
- "8000:8000"
登录进去里面账号报错,没有初始化表,我不想再试了。哈哈哈哈 加油 !!!!!
通过class name定位的元素失败,因为seleniumkeyword/Base.py中的封装的find_element函数调用了selenium.webdriver的原生find_element方法。
原生的
class By(object):
ID = "id"
XPATH = "xpath"
LINK_TEXT = "link text"
PARTIAL_LINK_TEXT = "partial link text"
NAME = "name"
TAG_NAME = "tag name"
CLASS_NAME = "class name"
CSS_SELECTOR = "css selector"
封装的元素为:
class Element(models.Model):
Element_Choice = (
('id', 'id'),
('name', 'name'),
('css selector', 'css selector'),
('xpath', 'xpath'),
('class_name', 'class name'),
('tag_name', 'tag name'),
('link_text', 'link text'),
('portial_link_text', 'portial link text')
)
实际调用传参为class_name
,dirver对象不识别,只有class name
才是正确的,另外通过源码可以查看到,link_text、portial_link_text、xpath也是存在问题的。应该把Element中的改为如('class name', 'class name')。
Traceback (most recent call last):
File "seleniumkeyword/TestSuite.py", line 418, in <module>
Controller.init()
File "seleniumkeyword/TestSuite.py", line 174, in init
cls.set_conn()
File "seleniumkeyword/TestSuite.py", line 186, in set_conn
charset='utf8')
File "C:\my_data\python_virtual_envs\automagic\lib\site-packages\MySQLdb\__init__.py", line 84, in Connect
return Connection(*args, **kwargs)
File "C:\my_data\python_virtual_envs\automagic\lib\site-packages\MySQLdb\connections.py", line 179, in __init__
super(Connection, self).__init__(*args, **kwargs2)
MySQLdb._exceptions.OperationalError: (2002, "Can't connect to MySQL server on '127.0.0.1' (10061)")
[20/May/2020 14:29:29] "GET /func/case/run/?csrfmiddlewaretoken=6uSUvL7yv0bmlaJrIilRglT1eJHIuaPfj8KQHgesq7TfO4hSud3YYbH37PNGm4ZR&caseid=1&_=1589956162863 HTTP/1.1" 200 4
[20/May/2020 14:29:30] "GET /func/case/list/?check_productname=1&projectid=1&moduleid=&casestatus=&issmoke=&keyword= HTTP/1.1" 200 21776
我在本地部署服务器后,链接本地数据库,使用没有问题,
本地部署服务器,连接线上数据库,就出现新增用例和修改用例后用例执行步骤不对
2018-04-13 16:33:15,015 [utils:execute] [DEBUG]- (0.002) SELECT autoplat_case
.
id
, autoplat_case
.projectid_id
, autoplat_case
.moduleid_id
, autoplat_c ase
.testrailcaseid
, autoplat_case
.casedesc
, autoplat_case
.isenabled
,
autoplat_case
.issmoke
, autoplat_case
.dependent
, autoplat_case
.debugin fo
, autoplat_case
.createtime
, autoplat_case
.createat
, autoplat_case
. updatetime
, autoplat_case
.updateat
FROM autoplat_case
WHERE autoplat_cas e
.id
= 1; args=(1,)
DevTools listening on ws://127.0.0.1:12371/devtools/browser/4061aec4-c5eb-448c-8
e65-1d236b06ef45
Time Elapsed: 0:00:00
Traceback (most recent call last):
File "seleniumkeyword/TestSuite.py", line 425, in
Controller.update_result()
File "seleniumkeyword/TestSuite.py", line 240, in update_result
Controller.my_execute(sql_str)
File "seleniumkeyword/TestSuite.py", line 195, in my_execute
cls.cur.execute(sql)
File "C:\Python27\lib\site-packages\MySQLdb\cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "C:\Python27\lib\site-packages\MySQLdb\connections.py", line 36, in defau
lterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax
; check the manual that corresponds to your MySQL server version for the right s
yntax to use near 'END WHERE id IN ()' at line 1")
框架设置的不错,请问有demo地址么?
Filed from caserun http://127.0.0.1:8008/run/1
Product:
QloudTest
Component(s):
<QuerySet []>
Version-Release number of selected component (if applicable):
1.0
Steps to Reproduce:
None
None
Actual results:
Expected results:
None
已经按照安装文档在本地部署好了,但是不会使用。
insertkeyword.sql
,但找不到打开url,实现登录有三个变量未定义
python: can't open file 'setup': [Errno 2] No such file or directory
Python3.6 不可以用啊,只能是Python2.7了,那个scapy2.3.3的版本不兼容python3,一开始没看清楚,就开始安装了。。。mysql-python也是没有拍一套红的版本都变成了MySQLclient了。
可以共享一下你的设计思路么
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.