如何使用Rally+Docker测试OpenStack
Rally的测试用例文件,一共有json和yaml两种格式文件,同名称的文件,其测试用例内容都是一样的。这里,我们测试的对象是Keystone服务的create-user测试用例。如下所示:# cat create-user.json{ "KeystoneBasic.create_user": [
{ "args": {}, "runner": { "type": "constant", "times": 100, // 测试执行次数
"concurrency": 10 // 并发数
}
}
]
}# pwd/home/rally/samples/tasks/scenarios/keystone# rally -v task start create-user.json
通过,观察测试结果信息,我们可以知道该测试用例已经执行成功了。终端中,展示的重要信息主要有执行该测试用例所用的时间(s);执行的测试次数;成功率等。
Rally要比Tempest更加人性化的一个地方在于,可以输出利于分析和浏览的用户图形化HTML报表。执行如下命令,生成HTML报表:
# rally task report 9866b3b3-58c2-4069-819b-f099e507c7e5 --out keystone-create-user.html
绛旓細Furthermore, she also openly displays her athletic prowess during one of Milly's festivals, another contrast with the physically unfit Lelouch. During the second battle of Tokyo, she leads a mission with Rolo to secure Nunnally, only to be apparently caught in the blast radius of the F.L.E...