ITeye博客

huangcaiyan

hcy_520 · 共 38 篇文章

[置顶] Protractor locator

browser.getTitle() //获取文件标题 就是html中titile的文字 element(by.css('.className')) //以class名字获取 element(by.id('idName')) //以id名字获取 element(by.model('modelName')) //以Angular中ng-model绑定的名字获取 element(by.binding(‘bindingname')) //查找绑定了指定名的元素 element(by.repeater('article in articleList')) //查找指定repeater中的元素 ele…

2017-03-07 16:51 · 自动化测试 · 评论(0)

[置顶] 自动化测试

Javascript自动测试框架比较 javascript自动测试框架 适 用 直接访问J S DOM A PI 远程控制 文件监视 文件预处理 测试代码编写语言 Karma unit 〇 〇 〇 〇 〇 任意 JsTestDriver unit 〇 〇 〇 X X JS Selenium e2e X 〇 〇 X X 任意 WebDriver e2e X 〇 〇 X X 任意 Html Runners( Jasime / QUnit ) unit 〇 〇 X X X JS Mocha Node 〇 X 〇 〇 〇 JS

2016-06-21 16:37 · 自动化测试 · 评论(0)

[置顶] Karma VS protractor

Karma Before discussing what Karma is, it is best to discuss what it isn’t. It isn’t a framework to write tests. It is a test runner. What this means is that Karma gives you the ability to run tests in several different browsers in an automated way. In the past, developers had to perform manual ste…

2016-05-25 16:00 · 自动化测试 · 评论(0)

[置顶] Automated e2e testing- WebDriverJS, Jasmine and Protractor

e2e or end-to-end or UI testing is a methodology used to test whether the flow of an application is performing as designed from start to finish. In simple words, it is testing of your application from the user endpoint where the whole system is a blackbox with only the UI exposed to the user. It ca…

2016-05-25 13:58 · 自动化测试 · 评论(0)

Mac 安装和破解ps6

mac 安装ps,出现Adobe Support Advisor 检测问题的解决以及破解 解决方法如下 : 1:双击 Adobe.CS6.Photoshop.dmg 2:双击 3:右击 Install->显示包内容 4:双击进入Contents 5:双击进入MacOS 6:双击里面的Install进行安装 经过上面几个步骤进行安装,就不会出现上述问题了。 顺便说下破解ps的方法: 1:从网上下载一个破解过的amtlib.framework这个文件 2:断开网络,这是为了避免麻烦的注册登录账户。 3:进行安装ps,选择试用,安装成功,你每次打开ps,就会有试用30天的提示。 4:破解开始,点击…

2017-07-03 23:36 · 软件安装 · 评论(0)

Mac 安装 MySQL

Mac 安装 MySQL 方法一 1、去mysql官网下载安装包,进行安装; 2、安装成功; 3、进入系统偏好设置 4、点击mysql 5、开启mysql服务 6、在terminal 输入: mysql -uroot -p 7、此时系统会提示: command not found 8、因为我们还没有配置系统变量,所以先要将mysql加入系统环境变量 (1)进入 /usr/local/mysql/bin ,查看此目录下是否有mysql (2)执行 vim ~/.bash_profile 该文件中添加 mysql/bin 的目录 PATH=$PATH:/usr/local/mysql/bin 添…

2017-05-12 20:39 · 软件安装 · 评论(0)

PyMySQL 安装

Mac 下安装PyMySQL 1、terminal 输入: brew install mysql-connector-c 得出下列: 2、terminal 输入: sudo easy_install MySQL-python 输出

2017-05-11 18:28 · 自动化测试 · 软件安装 · 评论(0)

python and VScode

mac 下vscode配置python command + shift + P 输入task 打开第一个配置文件tasks.json { "version": "0.1.0", "command": "python", "isShellCommand": true, "args": ["${file}"], "showOutput": "always" } 新建一个test.py command + shift + B运行py文件 配置python debug 1、新建一个python项目 2、打开launch.json文件 3、修改lanuch.json文件为: { "version": …

2017-05-11 11:48 · 自动化测试 · 软件安装 · 评论(0)

webstorm mac破解版安装

webstorm 2016 mac破解版的下载、安装、破解 系统版本要求:OSX 10.9以上 webstorm 2016.2 Mac破解版下载地址 密码 jn2u webstorm 破解步骤: 打开dmg镜像,将“webstorm.app“拖入应用程序; 将"JetbrainsCrack.jar"复制到应用程序"webstorm.app" 的[显示包内容]->[contains]->[bin]中; 用文本编辑器 右键打开webstorm.app ->[显示包内容]->[contains]->[bin]->[webstorm.vmoptions],在最后一行加入"-javaagent:Jet…

2017-05-11 10:25 · 软件安装 · 评论(0)

django 学习问题解答

问题1 当用pycharm 编辑器安装django-bootstrap3 时**:** $pip3 install django-bootstrap3 遇到以下错误: Collecting django-bootstrap3==8.2.3 Using cached django-bootstrap3-8.2.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/U…

2017-05-10 20:04 · 自动化测试 · 评论(0)

JavaScript testing frameworks

Jasmine Jasmine is a JavaScript testing framework . It can be easily integrated and run for websites and is agnostic to AngularJS. It provides spies and other features. It can also be run on its own without Karma. Some of the pros and cons are as follows: Pros cons Default integration with Karma No…

2017-03-09 17:07 · 自动化测试 · 评论(0)

作为一个产品经理应该具备哪些技能

1、产品需要的技能 需求分析 产品设计 项目跟进 行业知识 前三个不用解释。最后一个指的是多少要对互联网圈内或者所从事的行业内的知识和信息有所了解,往常的工作不都是闭门造车。 针对每一个技能项,都分三个档次,然后增加说明。 比如,拿到了数据可以做出判断,这是段位比较低的。再靠谱一些的,应该自己有调研、访谈或者收集数据的能力,需求的分析更加合理。最厉害的,可以有成套的方法,系统地获取用户需求。 那么需求分析的技能项标准按三个档次分就是: 需求分析 1 能基于已有数据或者主观判断得出用户的情况,并判断用户的需求 2 能通过访谈、调研等形式主动获取一定的数据和信息,做出判断 3 能根据产品的定位和…

2017-03-09 17:01 · 评论(0)

protractor 自动化测试书房

1、 Protractor: Learn Testing Angular

2017-03-09 17:00 · 自动化测试 · BOOKS · 评论(0)

selenium 笔记1

1)验证文本是否存在: command:verifyTextPresent 2)验证html tag是否存在(测试特定UI元素) command:veriftElementPresent //(检查链接、图片、分区等) **3)**测试文本和UI元素,检查Xpath或DOM定位器检查特定文本是否出现在页面上的特定位置 command:verifytext 4)identifier 当不能识别为其他定位方式后,默认为identifier定位,第一个使用指定id的页面元素被识别,没有使用指定id元素,将识别第一个名字与指定条件相符的元素。 5)name 设计人员频繁改变页面,通过id或name特…

2016-07-26 14:10 · 自动化测试 · 评论(0)

Javascript的this用法

JavaScript中this的用法 this是Javascript语言的一个关键字。 它代表函数运行时,自动生成的一个内部对象,只能在函数内部使用。比如, function test(){ this.x = 1; } 随着函数使用场合的不同,this的值会发生变化。但是有一个总的原则,那就是this指的是,调用函数的那个对象。 下面分四种情况,详细讨论this的用法。 情况一:纯粹的函数调用 这是函数的最通常用法,属于全局性调用,因此this就代表全局对象Global。 请看下面这段代码,它的运行结果是1。 function test(){ this.x = 1; alert(this.x…

2016-05-23 16:06 · javascript · 评论(0)