Questions tagged [test-runner]

187 questions
0
votes
1 answer

Test Runner file - Hover over error does not prompt user to import api

I created a New Maven project in Eclipse and then created a new "Feature file", "Step Definition" & "Testrunner". However I see quite a few error messages when I hover over the different annotations on the Test Runner class. See below {1 to 5} I did…
Rohit
  • 23
  • 2
0
votes
1 answer

Running RoboFramework Test in Pycharm

I managed to write a small script for running a single Robottest in Pycharm. With Pycharm ->Shift Shift -> External Tools -> Add a new one: Tool Settings: Program: "runner.bash" Working dir: current dir Arguments: $LineNumber$…
0
votes
0 answers

How to run bdd cucumber 5.6 without giving feature and glue path in test runner file

I am using the cucumber-java 5.6 version. As per this version we can run scripts without having to give feature and glue path in the test runner, tried various options but it is not working. Any help appreciated!
user1992728
0
votes
1 answer

Why Junit TestRunner cannot find the features?

I am working with cucumber and selenium project and I am trying to run the test by a Junit Test Runner. Here is the complete code (make sure you have lombok in your IDE). And here is my test runner: @RunWith(Cucumber.class) @CucumberOptions( …
Jeff
  • 7,767
  • 28
  • 85
  • 138
0
votes
1 answer

How to skip test if a condition is failed Junit (Instrumentation) Testing Android

I am writing test cases for a device testing in which I will have to check some Wifi, Messaging, Camera and Audio Apis but only if the device is capable of that Feature Example : @Test public void testMessagingApi() throws Exception { ....some…
0
votes
1 answer

AndroidX espresso tests not running, Tried a sample app and can make it work, not on a scaled project with many modules

I have a scaled project that has at least 12 modules. I would like to start the app module and run the project. Every time I try to start it, I keep getting the message that $ adb shell CLASSPATH=$(pm path androidx.test.services) app_process /…
Dinesh
  • 889
  • 14
  • 34
0
votes
1 answer

How to configure multiple jenkins jobs with different Test Runners?

We have around 80 feature files and 1 Test Runner. We have integrated the automation suite with Jenkins and the tests are running fine. We are mentioning the folder path of the feature file in the Test Runner file, it is executing all the 80 feature…
0
votes
3 answers

Jenkins Testrunner run SOAPUI Tests

I have 1 Jenkins slave for running SOAPUI tests. (I didn't set that slave) In Jenkins this projects is set to run using "Execute Windows batch command:" testrunner -s"All_tests" "D:\Jenkins\SoapUI_scripts\project.xml" It works good on that Jenkins…
0
votes
1 answer

getProjectByName(projectname) throwing null pointer exception in groovy when running through command line

I am trying to automate some test cases and in my groovy script I am getting null pointer exception on getProjectByName(projectname). When I am running it in SOAP UI it is working but when running through command line it is giving null pointer…
Yash
  • 1
  • 3
0
votes
0 answers

How to execute the feature file one by one mentioned order in feature tag of testng runner class

How to execute the feature file one by one in a mentioned order of feature tag in testng runner class ex: @cucumberOptions( tag="src/feature3.feature, src/feature1.feature" ) Need to execute the feature3 first after that feature1 need to be…
bhuvana
  • 1
  • 1
0
votes
3 answers

How can I run scenario of single Feature file in specflow

I want to implement TestRunner into my project to execute the test feature wise or in the given order but couldn't find any proper document or video how to integrate TestRunner in the project, as I am new in specflow and automation so I am not…
Ashish Verma
  • 19
  • 1
  • 9
0
votes
1 answer

SoapUI test runner run as admin

I created test in soapui and few steps are groovy scripts running some python file. It works fine running via testrunner but I have to run SoapUI as administrator. Now I am trying to run this test from jenkins but it is failing because of the same…
vb381
  • 181
  • 1
  • 3
  • 14
0
votes
1 answer

AttributeError: type object 'NoDbTestRunner' has no attribute 'split'

I'm trying to create a DiscoverRunner for Django 2.0 and python3 to skip DB creation, but get this error: File "manage.py", line 15, in execute_from_command_line(sys.argv) File…
mlmireles
  • 25
  • 8
0
votes
1 answer

How to write single test runner for classes with different @RunWith()?

I wrote simple method that executes tests in my test classes: DataContainerTest.class, AnotherTest.class. public static void main(String [] args) throws Exception { Result result = JUnitCore.runClasses(DataContainerTest.class,…
0
votes
1 answer

Run Django tests against an existing database with custom testrunner

I've got an application that is running Django 2 that connects to a Microsoft SQL Server backend. We're in a big environment where things are pretty tightly controlled - a user account has access to the database that houses all the tables for my…
Hanny
  • 2,078
  • 6
  • 24
  • 52