我在Win7 x32上使用SoapUI Pro 5.1.2,并尝试在Groovy TestStep中连接到Selenium Webdriver.
为此,我selenium-standalone-server.jar
在$SOAP_HOME$\bin\ext
文件夹中添加了v2.45.0 .
我的Groovy TestStep代码:
import org.openqa.selenium.WebDriver
import org.openqa.selenium.chrome.ChromeDriver
System.setProperty('webdriver.chrome.driver', 'C:\\\\Windows\\system32\\chromedriver.exe')
log.info(System.getProperty('webdriver.chrome.driver')) //got 'C:\\Windows\system32\chromedriver.exe'
WebDriver driver = new ChromeDriver() // this line causes error
driver.get('http://google.com')
driver.quit()
Run Code Online (Sandbox Code Playgroud)
当我尝试运行此步骤时,SoapUI返回消息:
org.openqa.selenium.remote.UnreachableBrowserException:
Could not start a new session.
Possible causes are invalid address of the remote server or browser start-up failure.
Build info:
version: '2.45.0',
revision: '5017cb8',
time: '2015-02-26 23:59:50'
System info:
host: 'SmithPC',
ip: '10.0.2.15',
os.name: 'Windows 7',
os.arch: 'x86',
os.version: '6.1',
java.version: '1.8.0_45' …
Run Code Online (Sandbox Code Playgroud) 有谁知道为什么'Cucumber Java'没有出现在"编辑配置 - >默认值 - > ????中,即使我的pom文件已下载依赖项,即黄瓜-java(1.1.5)
<dependencies>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.38.0</version>
</dependency>
</dependencies>
Run Code Online (Sandbox Code Playgroud)
Pom.xml文件用于安装所有必要的插件,即用于java插件的黄瓜
我们正在处理从apache hbase迁移到bigquery的过程.
目前我们有端到端测试(使用黄瓜),它与运行hbase的docker容器一起使用.
似乎没有任何大型的docker容器或模拟器(https://cloud.google.com/sdk/gcloud/reference/beta/emulators/)
我们如何能够为使用bigquery的应用程序创建端到端测试?
java continuous-integration integration-testing google-bigquery
onDelete
在Kotlin类中有一个方法.
override fun onDelete(position: Int) {
templates?.apply {
val deleteDialog = DeleteTemplateDialog(view.getViewContext())
deleteDialog.confirmListener = {
CustomTemplateRepository.getInstance().deleTemplate(this[position].templateId!!)
.subscribe({
deleteDialog.dismiss()
this.removeAt(position)
customTemplateAdapter?.notifyDataSetChanged()
view.showEmptyView(this.isEmpty())
}, {})
}
}
}
Run Code Online (Sandbox Code Playgroud)
当我构建release-apk时,我启用proguard
但由于以下警告而失败.
警告:com.uniquestudio.android.iemoji.module.library.customtemplate.MyTemplatePresenter $ onDelete $ 1 $ 1 $ 2:找不到引用的类com.uniquestudio.android.iemoji.module.library.customtemplate.MyTemplatePresenter $ onDelete $ 1 $ 1
当我使用dex2jar从debug-APK检索此类时.我懂了.
public void onDelete(final int paramInt)
{
final DeleteTemplateDialog localDeleteTemplateDialog = new DeleteTemplateDialog(this.view.getViewContext());
localDeleteTemplateDialog.setConfirmListenner((Function0)new Lambda(localArrayList)
{
public final Disposable invoke()
{
CustomTemplateRepository localCustomTemplateRepository = CustomTemplateRepository.Companion.getInstance();
String str = ((Template)this.receiver$0.get(paramInt)).getTemplateId();
if (str == null) {
Intrinsics.throwNpe(); …
Run Code Online (Sandbox Code Playgroud) 我正在使用 Cypress 来测试 iFrame 中的行为
对服务器端的请求是在 iFrame 内部完成的,
我的测试应该等待请求完成并继续测试
目前我正在等待 api 调用通过以下方式完成:
cy.route("POST", "URL")).as("Alias");
cy.wait("@Alias");
Run Code Online (Sandbox Code Playgroud)
Api 被成功调用,但在 Cypress 中它因等待调用 API 超时而失败。
我发现从一个模式文件中分离查询真的很困难。我想要这样的东西:
car.graphqls
type Query {
car(id: ID!): Car
}
type Car {
id: ID!,
name: String!
}
Run Code Online (Sandbox Code Playgroud)
房子.graphqls
type Query {
house(id: ID!): House
}
type House {
id: ID!,
owner: String,
street: String
}
Run Code Online (Sandbox Code Playgroud)
我搜索了很多,但找不到一种方法来编写两个 java 类并getHouse()
在其中一个和getCar()
另一个中实现。
@Component
public class CarQuery implements GraphQLQueryResolver {
@Autowired
private CarService carService;
public List<Car> getCar(final int id) {
return this.carService.getCar(id);
}
}
public class HouseQuery implements GraphQLQueryResolver {
@Autowired
private HouseService houseService;
public List<House> getHouse(final int id) {
return …
Run Code Online (Sandbox Code Playgroud) 我从 REST Api 有 2 个不同的响应,如下所示
1. {"type":null,"title":"Request is invalid","status":"BAD_REQUEST","detail":"Please correct request and try again.","invalidParams":[{"name":"create.arg0.name","reason":"Name is required"}]}
2. {"type":null,"title":"Unicode char u0000 is not allowed","status":"BAD_REQUEST","detail":"Unicode char u0000 is not allowed"}
Run Code Online (Sandbox Code Playgroud)
我想写一个条件,如果invalidParams
存在于响应中,然后比较数组的内容。如果不是,invalidParams
应该为空/未定义。
Scenario Outline: Create Asset Model with missing name and status
Given url modelsUrl
And request somedata
When method POST
Then status 400
Then assert response.type == null
Then match response.status == 'BAD_REQUEST'
Then match (response.invalidParams != undefined && response.invalidParams[0].reason contains <reason>) OR (response.invalidParams == undefined)
Run Code Online (Sandbox Code Playgroud)
但与 …
我正在将我的黄瓜版本从旧版本更新info.cukes
到最新版本io.cucumber
(v6.8.1),并且我的一些测试现在失败了java.lang.IllegalArgumentException at BuiltInParameterTransformer.java:114
如何在新黄瓜中传递字符串列表作为参数?
我读过这个答案,但它对我不起作用。您可以在下面找到一个示例来重现我的问题:
Scenario Outline: Testing lists of strings
When Great test <first> <second> <third>
Examples:
| first | second | third |
| "simple" | "listOfParams" | "another simple" |
| "simple" | "list,OF,params" | "another simple" |
Run Code Online (Sandbox Code Playgroud)
Scenario Outline: Testing lists of strings
When Great test <first> <second> <third>
Examples:
| first | second | third |
| "simple" | "listOfParams" | "another simple" |
| "simple" | "list,OF,params" …
Run Code Online (Sandbox Code Playgroud)