我安装了cordova并创建了一个新项目.
但是当我使用这个命令添加android平台时:
cordova platfom添加android
出现此错误:
Error: Failed to fetch platform android
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: version not found: cordova-android@5.1.0
Run Code Online (Sandbox Code Playgroud)
这就是我创建新项目的方式:
cordova创建hello com.example.hello HelloWorld
这是我的SDK Manager:
但我可以添加ios平台(但我在Windows上工作)
我只是尝试使用插件Extras,Hadoop,ExtraLibs和Webdriver在Jmeter上启动webdrivertest.(全部1.3.0)当我尝试启动脚本时出现以下错误:
Chrome + IE:
jmeter.threads.JMeterThread: Test failed! java.lang.NoClassDefFoundError: Could not initialize class org.apache.http.conn.ssl.SSLConnectionSocketFactory
at org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:68)
at org.openqa.selenium.remote.internal.HttpClientFactory.<init>(HttpClientFactory.java:56)
at org.openqa.selenium.remote.internal.HttpClientFactory.<init>(HttpClientFactory.java:60)
at org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251)
at org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.<init>(ApacheHttpClient.java:228)
at org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:89)
at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:63)
at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:58)
at org.openqa.selenium.remote.service.DriverCommandExecutor.<init>(DriverCommandExecutor.java:47)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:170)
at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.createBrowser(ChromeDriverConfig.java:61)
at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.createBrowser(ChromeDriverConfig.java:21)
at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.getPreparedBrowser(WebDriverConfig.java:233)
at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.threadStarted(WebDriverConfig.java:220)
at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:610)
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:998)
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:980)
at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:579)
at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:567)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
at java.lang.Thread.run(Unknown Source)
jmeter.JMeter: Uncaught exception: java.lang.NoClassDefFoundError: org/openqa/selenium/os/Kernel32
at org.openqa.selenium.os.ProcessUtils.killWinProcess(ProcessUtils.java:133)
at org.openqa.selenium.os.ProcessUtils.killProcess(ProcessUtils.java:81)
at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.destroyHarder(UnixProcess.java:248)
at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.access$200(UnixProcess.java:200)
at org.openqa.selenium.os.UnixProcess.destroy(UnixProcess.java:124)
at org.openqa.selenium.os.CommandLine.destroy(CommandLine.java:153)
at org.openqa.selenium.remote.service.DriverService.stop(DriverService.java:190)
at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.quitBrowser(ChromeDriverConfig.java:69)
at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.quitBrowser(ChromeDriverConfig.java:21)
at …
Run Code Online (Sandbox Code Playgroud) 我试图用一个复选框选中所有复选框.但是怎么做呢?
这是我的HTML:
<input type="checkbox" ng-model="selectAll" ng-click="checkAll()" />
<!-- userlist -->
<!--<div id="scrollArea" ng-controller="ScrollController">-->
<table class="table">
<tr>
<th>User ID</th>
<th>User Name</th>
<th>Select</th>
</tr>
<tr ng-repeat="user in users | filter:search">
<td>{{user.id}}</td>
<td>{{user.name}}</td>
<td><input type="checkbox" ng-click="usersetting(user)" ng-model="user.select"></td>
<td><tt>{{user.select}}</tt><br/></td>
</tr>
</table>
Run Code Online (Sandbox Code Playgroud)
我创建了一个额外的复选框来selecet并取消选中所有复选框.
JS:
.controller('UsersCtrl', function($scope, $http){
$http.get('users.json').then(function(usersResponse) {
$scope.users = usersResponse.data;
});
$scope.checkAll = function () {
angular.forEach($scope.users, function (user) {
user.select = true;
});
};
});
Run Code Online (Sandbox Code Playgroud)
我也试过这个,但它们都不适合我:(
$scope.checkAll = function () {
angular.forEach($scope.users, function (user) {
user.select = $scope.selectAll;
});
};
Run Code Online (Sandbox Code Playgroud) 这个错误:
每次我在Jmeter中运行一个测试脚本时都会出现.一切正常......
实际脚本运行后,每次在日志中出现此错误.
我可以忽略这个错误吗?或者它会影响我的测试?
Jmeter: 2.13
Java: 1.8.0.45
Jmeter插件: 1.3(Standard,Extras,ExtraLibs,Webdriver)
只是尝试将整数转换为字符串.
vars.put("test", i);
Run Code Online (Sandbox Code Playgroud)
我想将值放在变量"test"中,但它不起作用,我想我必须将int转换为字符串.但我不知道该怎么做.我刚刚发现了如何在BeanShellSampler中将字符串解析为整数.
对于Webdrivertest,我使用的是Chrome,但始终会查询一个SSL证书。使用Google Chrome设置后,将无法处理。所以我读到有一种有关注册表的方法。所以我尝试了各种组合:
HKEY_LOCAL_MACHINE /软件/政策/ Chrome / AutoSelectCertificateForUrls
名称= 1
值= {\“模式\”:\“ URL \”,\“过滤器\”:{\“ ISSUER \”:{\“ CN \”:\“用户证书\”}}}
HKEY_LOCAL_MACHINE /软件/政策/ Google / Chrome / AutoSelectCertificateForUrls
名称= 1
值= {“模式”:“ url”,“过滤器”:{“ ISSUER”:{“ CN”:“用户证书}}}
HKEY_LOCAL_MACHINE /软件/策略/ Chromium / AutoSelectCertificateForUrls
名称= 1
值= {“ pattern”:“ url”,“ filter”:{“ ISSUER”:{“ CN”:“用户证书”}}}
HKEY_LOCAL_MACHINE /软件/政策/ Google Chrome / AutoSelectCertificateForUrls
名称= 1
值=
{\“模式\”:\“ URL \”,\“过滤器\”:{\“ ISSUER \”:{\“ CN \”:\“用户证书\“}}}
和其他组合。当我转到chrome:// policy时,我发现了它。
它在策略中,但不起作用。我仍然可以查询证书。有人知道为什么它不起作用吗?
我得到了一个包含超过 8 个 Webdriver-Sampler 和一个变量的 Testscript,它在某些 Webdriver-Sampler 中发生了变化。
例如:
第一个采样器: 状态=“登录成功”
第二个采样器: 状态=“登录成功,搜索失败”
第三个采样器:状态=“登录成功,搜索失败,注销成功”
所以我必须每次都传递变量,然后编辑这个变量。我知道可以传递关于参数字段的变量。但是如何在脚本中编辑用户定义变量?