我们正在尝试运行Web组件测试程序,但它一直停留在Selenium步骤上.
我跑的时候 wct -l chrome --verbose
我得到以下内容
hook: prepare
hook: prepare:selenium
hook done: prepare:selenium
Starting Selenium server for local browsers
11:47:46.357 INFO - Launching a standalone server
Setting system property webdriver.chrome.driver to C:\Users\<user>\AppData\Roaming\npm\node_modules\web-component-tester\node_modules\wct-local\node_modules\selenium-standalone\.selenium\chromedriver\2.13-x64-chromedriver
Setting system property webdriver.ie.driver to C:\Users\<user>\AppData\Roaming\npm\node_modules\web-component-tester\node_modules\wct-local\node_modules\selenium-standalone\.selenium\iedriver\2.44.0-x64-IEDriverServer.exe
11:47:46.809 INFO - Java: Oracle Corporation 25.31-b07
11:47:46.809 INFO - OS: Windows 7 6.1 x86
11:47:46.872 INFO - v2.44.0, with Core v2.44.0. Built from revision 76d78cf
11:47:47.669 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:11655/wd/hub
11:47:47.669 INFO - Version Jetty/5.1.x
11:47:47.685 …
Run Code Online (Sandbox Code Playgroud) 我需要配置Polymer web-component-tester以使用运行的Selenium Grid,http://jenkins.myapp.corp.web:4444/wd/hub
这样我就可以在Jenkins上运行我的测试.什么是Grunt配置?我猜这样的事情:
'wct-test': {
local: {
options: {
activeBrowsers: [{
browserName: 'chrome',
url: 'http://jenkins.myapp.corp.web:4444/wd/hub'
}]
}
}
}
Run Code Online (Sandbox Code Playgroud) 有没有办法为keystonejs运行测试,这些测试也会遇到测试或真正的mongodb实例?
如果类似于Django的方式,这将是很好的.
有人告诉我,可以在SAML身份验证请求期间提供有关组成员资格的信息.我们必须连接到使用SAML的应用程序(我们最终创建了SAML答案XML).验证用户工作正常,但我找不到指定"成员"或类似属性的方法.
您能否向我解释如何在身份验证期间通过SAML传递组成员身份或有一个示例?
我知道有可能在所谓的政策决策点处理SAML的授权.但这意味着我们要检查授权的每个或一些(如果是批处理的)实体会发生SAML流.让我举个例子说明我们要做的事情.此示例已组成,但显示了我们要解决的问题.假设您有一个包含大量目录和文件的硬盘驱动器.我们使用SAML对尝试访问该驱动器的人进行身份验证.允许组"admin"的成员进行读写,组"user"的成员仅被授予读权限.因此,我们希望在用户进行身份验证时发送用户的组成员身份.因为否则意味着如果用户在必要的组中,应用程序必须检查每个文件.
我有用户提交的文件,我试图以10 MB的块上传.我目前正在使用原始XMLHttpRequest(和XDomainRequest)来推送File.prototoype.slice
前端的每个切片().后端是使用上传模块的 Nginx .
仅供参考,以下是我如何使用的概要slice
:
element.files[0].slice(...)
Run Code Online (Sandbox Code Playgroud)
据我所知,跨浏览器的前缀的方法webkitSlice
,并mozSlice
和所有.
我遇到的问题是实际发出跨域请求.我是从上传server.local
到upload.server.local
.在Firefox中,options
请求通过正常,然后实际post
失败.在Chrome和Opera中,options
请求失败
OPTIONS https://URL Resource failed to load
Run Code Online (Sandbox Code Playgroud)
以下是Firefox的标题:
OPTIONS /path/to/asset HTTP/1.1
Host: upload.server.local:8443
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Origin: https://server.local:8443
Access-Control-Request-Method: POST
Access-Control-Request-Headers: content-disposition,content-type,x-content-range,x-session-id
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Run Code Online (Sandbox Code Playgroud)
HTTP/1.1 204 No Content
Server: nginx/1.2.6
Date: Wed, 13 Feb 2013 …
Run Code Online (Sandbox Code Playgroud) polymer ×2
selenium ×2
unit-testing ×2
cors ×1
cross-domain ×1
fileapi ×1
keystonejs ×1
mongodb ×1
mongoose ×1
nginx ×1
node.js ×1
saml ×1
saml-2.0 ×1