automated-tests

Can nightwatch.js use usingServer from selenium-webdriver?

帅比萌擦擦* 提交于 2021-01-29 01:49:55
问题 I have a suite of tests using local drivers built with nightwatch. Works well. I am running a basic test using Perfecto Mobile and selenium-webdriver. It works with this example.(https://community.perfectomobile.com/series/20208/posts/1002862) I am trying to connect my suite of nightwatch test to perfecto, but can't start selenium. If this is the url of the selenium server. var url = "https://mobilecloud.perfectomobile.com/nexperience/perfectomobile/wd/hub"; I tried a few ways to set it up

Can nightwatch.js use usingServer from selenium-webdriver?

坚强是说给别人听的谎言 提交于 2021-01-29 01:43:04
问题 I have a suite of tests using local drivers built with nightwatch. Works well. I am running a basic test using Perfecto Mobile and selenium-webdriver. It works with this example.(https://community.perfectomobile.com/series/20208/posts/1002862) I am trying to connect my suite of nightwatch test to perfecto, but can't start selenium. If this is the url of the selenium server. var url = "https://mobilecloud.perfectomobile.com/nexperience/perfectomobile/wd/hub"; I tried a few ways to set it up

Karate Software - how to press button where header has specific value (not in direct path)

不羁的心 提交于 2021-01-28 23:32:52
问题 I have task when I want to press button with "Delete" caption according to string (picture attached). There are many these sections in application and I want to press the Delete button according to specific H6 string. I need to write click action to find the code with H6 value (this time "app111") and click on the button Delete. I have tried something like this "rightOf('app111').find('button').click() or below('app111').find('button').click()" in many variations but I was not successful. In

Karate Software - how to press button where header has specific value (not in direct path)

ⅰ亾dé卋堺 提交于 2021-01-28 23:31:45
问题 I have task when I want to press button with "Delete" caption according to string (picture attached). There are many these sections in application and I want to press the Delete button according to specific H6 string. I need to write click action to find the code with H6 value (this time "app111") and click on the button Delete. I have tried something like this "rightOf('app111').find('button').click() or below('app111').find('button').click()" in many variations but I was not successful. In

Karate Software - how to press button where header has specific value (not in direct path)

别说谁变了你拦得住时间么 提交于 2021-01-28 22:38:36
问题 I have task when I want to press button with "Delete" caption according to string (picture attached). There are many these sections in application and I want to press the Delete button according to specific H6 string. I need to write click action to find the code with H6 value (this time "app111") and click on the button Delete. I have tried something like this "rightOf('app111').find('button').click() or below('app111').find('button').click()" in many variations but I was not successful. In

Running karate tests on chrome with chromedriver inside docker

为君一笑 提交于 2021-01-28 21:07:17
问题 I would like to run my karate tests using the chromedriver and chrome present in a docker container. How can this be achieved ? I could only find the documentation on the native version of chrome here 回答1: We only support chrome native via Docker. Note that you can use existing Selenium "Grid" infra, for e.g see these: https://github.com/ptrthomas/karate-devicefarm-demo https://stackoverflow.com/a/60992292/143475 You can consider creating your own Docker image (which is very common) or use an

Running karate tests on chrome with chromedriver inside docker

我只是一个虾纸丫 提交于 2021-01-28 20:27:56
问题 I would like to run my karate tests using the chromedriver and chrome present in a docker container. How can this be achieved ? I could only find the documentation on the native version of chrome here 回答1: We only support chrome native via Docker. Note that you can use existing Selenium "Grid" infra, for e.g see these: https://github.com/ptrthomas/karate-devicefarm-demo https://stackoverflow.com/a/60992292/143475 You can consider creating your own Docker image (which is very common) or use an

TestCafe visibilityCheck does not wait for element to appear

爱⌒轻易说出口 提交于 2021-01-28 19:50:35
问题 I am trying to get TestCafe to wait for an element to appear in the dom. Currently I am using { visibilityCheck: true } but it does not seem to do anything and the test will time out and be considered a failure. Goals: Go to page Wait for searchIconElement to load Code: fixture`Library /all`.page(page.libraryScreen).beforeEach(async t => { await t.useRole(page.adminUser); }); test('Search Bar', async t => { const searchIcon = Selector('div').withAttribute('class', 'CampaignsPage-fab1'); const

How to passing json parameters for test api (restful) in katalon studio?

陌路散爱 提交于 2021-01-28 14:13:00
问题 I created a demo test using reqres.in fake data API. I want to create a user with a name and a job parameter, but the data format required is json. In my Katalon test I tried to do that in the script tab: My parameters are not sent to the API... I didn't find how to do that in Katalon Studio (5.7) and I don't know if it's possible to do that. 回答1: You didn't add parameters to the REST object. Click the + Add button shown in the screenshot and add the following to the parameter table: Name |

Can you save a result (Given) to a variable in a Gherkin feature file, and then compare the variable with another result (Then)? (Cucumber for Java)

 ̄綄美尐妖づ 提交于 2021-01-28 08:58:10
问题 I am new to Cucumber for Java and trying to automate testing of a SpringBoot server backed by a MS SQL Server. I have an endpoint "Get All Employees". Writing the traditional feature file, I will have to list all the Employees in the @Then clause. This is not possible with thousands of employees. So I just want to get a row count of the Employee table in the database, and then compare with the number of objects returned from the "Get All Employees" endpoint. Compare SELECT count(*) from