java - Sharing content.txt data between multiple Fitnesse tests -


I am trying to use a content.txt file between two fixture tests. An intermediate class, testability, receives data from a content.txt file, and two fixtures are called Test Call Utility Classes. However, I am receiving a NullPointerException from GetText, I do not accept that fitness does not accept an intermediate test file. Does anyone know how I can do this work?

  Extension of the test class of public class {@BeforeClass Public Zero Setup ({{System.out.println ("In Setup"); CellR0C0 = Match Text (0,0); CellR1c = matching text (1.0); CellR2C0 = Match Text (2,0); CellR0C1 = new double (getInt (0,1)); CellR1C1 = new double (getInt (1,1)); CellR2C1 = new double (getInt (2,1)); / ** * * @ Ultimate FitnessRo * / Public Zero Show Results (Int FitnessRo) {}} // And Class Test Utility Folk Class MyTestfacesctions {/ ** * * @ Param FitnessRo * / Public Records Show Results (Int FitnessRo) { Testability test utility = New TestUtility () testUtility.setUp (); Testutility.restOfTest ()}} content.txt # !! ! | Fitnesse.fixtures.TestUtility | | ABCDE101 | 200 | | ABCDE102 | 300 | ABCDE103 | 400    

When a stability testUtility is tested by FitNesse , It is started by FITNESS so that you can get information from the test page with methods like getText . When you make a fixture with the new , this information is not started and the calling gettext will fail, as you saw.

If you want to use information in a different class than stability, you can keep the information in fixed areas so that you get it done in new .


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -