1、what is the MAIN benefit of designing tests early in the life cycle? 2、What is risk-based testing? 3、What is the KEY difference between preventative ...
分类:
其他好文 时间:
2018-05-19 14:49:35
阅读次数:
158
1. Variables |- Set variable |- Create list |- Evaluate |- Get variable 2. Conditional |- Run Keyword If |- Run Keyword And Continue On Failure |- Run ...
分类:
其他好文 时间:
2018-05-19 14:45:54
阅读次数:
148
expect 可以让一些需要交互的命令自动完成,如 ssh 连接的适合需要输入密码。 也就是说,某些重复的操作我们可以使用该命令完成,比如 ssh 连接到服务器,然后进到某个项目目录,进行 git 的更新操作。 需要安装的东西:expect、tcl mac:brew install expect、b ...
分类:
系统相关 时间:
2018-05-17 11:36:20
阅读次数:
204
expect分发yuminstall-yexpect1.自动远程登录#!/usr/bin/expectsethost"192.168.133.132"//定义变量hostsetpasswd"123456"spawnsshroot@$host//spawn后面跟系统shell命令,远程登录expect{"yes/no"{send"yes\r";exp_continue}//初次登录机器会提示yes/
分类:
其他好文 时间:
2018-05-16 22:45:12
阅读次数:
174
☆ Map diffQuota = Maps.newHashMapWithExpectedSize(2); Maps.newHashMapWithExpectedSize(3),初始化一个大小合适的map集合,避免在向集合添加元素的时候,因为大小不合适而resize, 每次resize都得执行以下步... ...
分类:
其他好文 时间:
2018-05-15 22:53:59
阅读次数:
278
大家都知道使用iTerm2连接shh 使用命令 ssh -p22 root@129.10.10.1,然后输入密码即可。 但是每次都输入还是比较麻烦的。iTerm2为我们提供了快捷的方式。三步即可完成此项设置。方法如下: 1,编辑命令文本 样本: #!/usr/bin/expect -f set us ...
分类:
其他好文 时间:
2018-05-14 23:04:23
阅读次数:
489
条件判断,循环,信号捕捉,函数,数组,高级字符串操作,高级变量,Expect
分类:
系统相关 时间:
2018-05-14 00:58:42
阅读次数:
297
描述 http://train.usaco.org/usacoprob2?a=y0SKxY0Kc2q&S=gift1 给出不超过$10$个人,每个人拿出一定数量的钱平分给特定的人,求最后每个人的财产变化. Task 'gift1': Greedy Gift Givers A group of NP ...
分类:
其他好文 时间:
2018-05-12 02:36:49
阅读次数:
195
vi deploy_ssh_key.exp for x in `cat ip.txt | awk '{print $1}'`;do ./deploy_ssh_key.exp $x;done ...
分类:
其他好文 时间:
2018-05-10 11:36:45
阅读次数:
161
整理自: https://blog.csdn.net/woaidapaopao/article/details/77806273?locationnum=9&fps=1 EM算法是用于含有隐变量模型的极大似然估计或者极大后验估计,有两步组成:E步,求期望(expectation);M步,求极大(ma ...
分类:
其他好文 时间:
2018-05-09 22:42:59
阅读次数:
189