automated-tests

Gradle command syntax for executing TESTNG tests as a group

 ̄綄美尐妖づ 提交于 2019-12-24 07:52:34
问题 I have some tests as below: @Test(groups={"smoke"}) public void Test1(){...} @Test(groups={"smoke", "regression"}) public void Test2(){...} @Test(groups={"regression"}) public void Test3(){...} In build.gradle file I have below: task smoketests(type: Test){ useTestNG() { suites "src/test/resources/testng.xml" includeGroups "smoke" } } I need to have a gradle syntax to run the smoke/regression tests only using commandline. I have tried this: ./gradlew clean test -P testGroups="smoke" if I run

master runner in testcafe for several other runners?

℡╲_俬逩灬. 提交于 2019-12-24 07:39:11
问题 I have several runners which are using promise.race to complete the testcase at a particular time Say I have runner1.js, runner2.js runner3.js, how do I create a master runner so that I can run all these runners together? const createTestCafe = require('testcafe'); let testcafe = null; // createTestCafe('localhost', 1337, 1338) createTestCafe() .then(tc => { testcafe = tc; //create test runner for configuring and launching test tasks const runner = testcafe.createRunner(); return runner //run

C# NUnit Selenium - Passing Objects from SetUp to TestCase

浪尽此生 提交于 2019-12-24 06:49:59
问题 I am not understanding how the scoping works on a test case. [TestFixture] class MockTests { [Setup] private void StartTest() { IWebDriver driver = new ChromeDriver(); TestLogger logger = new TestLogger(); } [TestCase(TestName = "mock1")] { //Problem is here. Driver and logger "does not exist in the current context" driver.Navigate().GoToUrl("http://my.url.com"); logger.Out("Hello! I cannot be accessed!"); } [TestCase(TestName = "mock2")] { //I now have a new instance of driver and logger in

Limit of 500 test users per Facebook app - should I stub the Facebook API for automated load testing my app?

ぃ、小莉子 提交于 2019-12-24 06:49:30
问题 I am working on an automated test script to create test users and connect them as friends with each other to load test and profile parts of my app. The test user documentation states a limit of a maximum 500 test users per application. https://developers.facebook.com/docs/test_users/ An app can create up to 500 test users to start testing an app. If you exceed the limit of test users you can create for an app you will receive an error. Anyone else out there ever needed to push past this limit

How to configure CI for dockerized F# Expecto tests on TFS

徘徊边缘 提交于 2019-12-24 06:22:46
问题 I have some dockerized F# tests written by expecto and fscheck frameworks, as a dotnet core standalone executable . How to configure continuous integration on Team Foundation Server to run them and get the report after each run accordingly? 回答1: If you mean you already have the docker image which has the proper SDK/envirement, then you just need to run the image in TFS with CI build (Configure continuous integration). To run the image, you need to install the Docker Integration extension,

Best practice approach for automated testing

元气小坏坏 提交于 2019-12-24 06:22:16
问题 This is a very strange request for advice for which I truly feel there is no real answer. In my project I have archiving routines on various objects that have been consumed for logical calculations, I archive these items for the sake of audit trail and to check up on calculation errors or prove correctiveness at a later stage. I am working with Entity Framework and things are slightly different to perhaps your own project. I consume the original object, modify it directly, create a clone of

Best practice approach for automated testing

為{幸葍}努か 提交于 2019-12-24 06:22:08
问题 This is a very strange request for advice for which I truly feel there is no real answer. In my project I have archiving routines on various objects that have been consumed for logical calculations, I archive these items for the sake of audit trail and to check up on calculation errors or prove correctiveness at a later stage. I am working with Entity Framework and things are slightly different to perhaps your own project. I consume the original object, modify it directly, create a clone of

How to write an Android UI test where the contents of views are determined at runtime?

浪尽此生 提交于 2019-12-24 05:59:45
问题 The Situation I'm writing a timetable-viewing application and the first feature to be implemented is choosing the course for which to view the timetable. The user chooses the name of their course from a list and is taken to another screen to further specify which year, group etc. of the course they're currently in. The screens to choose your course and edit your course details are as follows: The Goal Inspired by the Google I/O 17 talk on Test-Driven Development on Android, what I wish to

Some elements take too long to be identified when playing your coded UI test

核能气质少年 提交于 2019-12-24 04:39:04
问题 Let's say I have an automated test case that launches Google.com and searches for a string. Launch google.com Search "Malaysian Airline" I have all the necessary properties for search field identified so that playback can find this very easy and run through it. But, when I run the test, it takes up to 10-14 seconds only to find the search field in Google.com and then searching in it. My Code is BrowserWindow browser = BrowserWindow.Launch("www.google.com"); UITestControl UISearch = new

Run TestFixtures in Order with NUnit

大兔子大兔子 提交于 2019-12-24 04:35:13
问题 I need to have ordered test fixtures in my NUnit c# Application. I have an example on how to run ordered test methods from this page, and I've tried to implement the same logic for test fixtures with the same methods provided in the example application. In our application a test fixture is separated for each class and each test fixture has one test method. Our latest attempt was to use a Parent Test Fixture which inherits from a class called: OrderedTestFixture (the same as in the example),