52614

tests skipped inspite the dependant method passed. TestNG

Question:

I have a number of tests across classes. Each class is defined as @Test and group name added to it same as class name[they are u1,u2,u3,u4,u5]. In u1, I have a test method for prerequisites called prereqSetup(). This is added to the group "prereq". Now, all the methods in u1 are marked with dependsOnMethods="prereqSetup". Rest all classes are marked as dependsOnGroups="prereq".

My prerequisites method has passed. Couple of methods in u1 and u3 are run and show failed. But rest all methods are skipped. There is no other dependency apart from what i have mentined above. Providing the annotations for reference:

@Test(groups="u1") public class U1 { //All methods are marked with @Test(dependsOnMethods="prereqSetup") } @Test(groups="u2",dependsOnGroups="prereq") public class U2{ //All methods are marked with @Test }

This is done for all classes through u2-u5.

Answer1:

I am a bit unclear on the question but it doesn't look like you have a group called "prereq"

Recommend

  • Compare two unsorted files and print unique elements from each file
  • Referencing pivot tables from excel 2012 in VBA
  • How to convert Quarter years to other format
  • Unable to add foreign keys to mysql database
  • 2 while read loops?
  • Filter numpy structured array based on multiple values
  • How to do numerical multiple integral (more than triple)?
  • Azure Function / Azure Website Custom Deploy Script Ending Prematurely
  • Apps Marketplace SDK: Test Install Flow button missing
  • Accessing twitter using tornado.httpclient using proxy [closed]
  • Would using a substring of a GUID in CosmosDB as partitionkey be a bad idea?
  • how can i generate ssis packages from biml using commandline and deploy ssis on server
  • Is there ever a reason to use is versus as? [duplicate]
  • Disable check for override in gcc
  • Subversion reverting resolved file
  • Cannot save model when using ember render helper
  • How to use Windows Media Foundation with UWP without a topology
  • Prevent Tomcat from caching request during starup
  • Jquery Knockout: ko.computed() vs classic function?
  • Ember.js model to be organised as a tree structure
  • Xcode 4 NSLog Macro link in Xcode 3
  • Make VS2015 use angular-cli ng at build time in a .NET project
  • Is it possible to access block's scope in method?
  • Meteor: Do Something On Email Verification Confirmation
  • Google Custom Search with transparent background
  • Display issues when we change from one jquery mobile page to another in firefox
  • Deselecting radio buttons while keeping the View Model in synch
  • Finding past revisions of files in StarTeam w/ .NET SDK / C#
  • JSON with duplicate key names losing information when parsed
  • Trying to switch camera back to front but getting exception
  • Jquery - Jquery Wysiwyg return html as a string
  • Why winpcap requires both .lib and .dll to run?
  • Cannot Parse HTML Data Using Android / JSOUP
  • Free memory of cv::Mat loaded using FileStorage API
  • C# - Getting references of reference
  • How to set the response of a form post action to a iframe source?
  • Angular 2 constructor injection vs direct access
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • unknown Exception android
  • Programmatically clearing map cache