automated-tests

Instrumentation run failed due to 'Process crashed.'

折月煮酒 提交于 2020-03-17 06:44:10
问题 I wanted to run the following test: package com.xxx.yyy; import android.content.Context; import androidx.test.InstrumentationRegistry; import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test

Can I determine if current test execs from test lab or interactively from within QTP IDE?

无人久伴 提交于 2020-03-14 04:59:39
问题 What is the most efficient way to check if the current QTP test execution is interactive, i.e. not part of a QC test set execution launched from the QC test lab? Do you guys know a cool way? WR used to have a batch run flag which reliably was cleared for all executions from within the IDE. Maybe QTP has something like this, and I overlooked it? First, I thought about looking at the OnError property: Set qtApp = getObject("","QuickTest.Application") qtApp.Test.Settings.Run.OnError now returns

Gradle TestNG Task is not create test-output folder

假如想象 提交于 2020-03-06 03:28:57
问题 I just start working with Gradle on Test Automation. Here we have a problem that test-out folder is not created when we triggered Gradle Task. Right click > Run As TestNG , it works fine the out-put folder is created. But when we execute Gradle Task . this folder is not created. test { useTestNG() { excludeGroups 'unit' } ignoreFailures = true testLogging.showStandardStreams = true } task ParallelTestExecution(type: Test) { useTestNG() { options.parallel = 'methods' //modes: methods, tests,

Using for loop and if else in cypress

好久不见. 提交于 2020-03-03 09:04:56
问题 I am in a situation where I need to use for loop and If else block in cypress Scenario : Once I login to an application, I need to read an element's text which is rounded in the below screenshot. This element will appear within 20-90 seconds after I log in, when I refreshed the screen. so I need to write something like this, wait for element, if it appears reads the text and returns the value, if not wait for 10 seconds reload the page and do the process again. function waitAndreload() { for

How to test css properties of pseudo elements in Nightwatch

这一生的挚爱 提交于 2020-03-03 04:59:45
问题 I want to test the background image is correct on my website using Nightwatch, but its set to be the background of a ::before pseudo element, here is the CSS .icon-circle-delete:before { content: ''; background: url(images/svg/delete.svg) no-repeat 50% 50%; display: inline-block; width: 16px; height: 16px; I've tried the following: .assert.cssProperty("i.icon-circle-delete", "background", "url(clientlib-site/images/svg/delete.svg) "); .assert.cssProperty("i.icon-circle-delete:before",

cypress - do action until element shows on screen

橙三吉。 提交于 2020-02-29 06:46:08
问题 I know that Cypress is not big on conditional testing, but coming from a selenium webdriver background, I'm very used to using this kind of logic in my tests. I am testing a KaiOS app that instead of scrolling, uses page flipping similar to a kindle device to make it easier for the user to read. Currently, since KaiOS is based on Firefox OS, the only way to use the app on a computer in a similar way to the device is to use firefox. The problem is that the page flipping when running the tests

Cypress - run test in iframe

我只是一个虾纸丫 提交于 2020-02-25 08:23:29
问题 I'm trying to find elements in iframe but it doesn't work. Is there anyone who have some system to run tests with Cypress in iframe? Some way to get in iframe and work in there. 回答1: It's a known issue mentioned here. You can create your own custom cypress command which mocks the iframe feature. Add following function to your cypress/support/commands.js Cypress.Commands.add('iframe', { prevSubject: 'element' }, ($iframe, selector) => { Cypress.log({ name: 'iframe', consoleProps() { return {

Cypress - run test in iframe

北城以北 提交于 2020-02-25 08:23:28
问题 I'm trying to find elements in iframe but it doesn't work. Is there anyone who have some system to run tests with Cypress in iframe? Some way to get in iframe and work in there. 回答1: It's a known issue mentioned here. You can create your own custom cypress command which mocks the iframe feature. Add following function to your cypress/support/commands.js Cypress.Commands.add('iframe', { prevSubject: 'element' }, ($iframe, selector) => { Cypress.log({ name: 'iframe', consoleProps() { return {

testing in .net framework

微笑、不失礼 提交于 2020-02-24 00:37:19
问题 I have created a unit test project targetting .NET Framework 4.6.1. The tests appear in Test Explorer and run fine in Visual Studio 2017. I want to set up a build process, so I want to run the tests from the command line. I attempted to use mstest but this did not find the tests. when i run mstest /testcontainer:mp.tests\bin\debug\mp.tests.dll I get... Loading messageparser.tests\bin\debug\messageparser.tests.dll... Starting execution... No tests to execute. However I can successfully use the

Test Automation for Internet Explorer

泄露秘密 提交于 2020-02-23 09:58:17
问题 Is there any tools for GUI Test Automation for Internet Explorer? I already use Selenium for Mozilla Firefox, but I also need a tool for IE. 回答1: * UPDATE * Selenium Web Driver is the successor to Selenium RC. So the answer is still to use Selenium in some form. That could be any of the supported frameworks. Personally I'd use Protractor (useful for more than just Angular apps) or Leadfoot (from the Intern.io project). * ORIGINAL RECOMMENDATION * If you're already using Selenium, I'd use