fitnesse | FitNesse -- The Acceptance Test Wiki | Functional Testing library

 by   unclebob Java Version: 20231029 License: Non-SPDX

kandi X-RAY | fitnesse Summary

kandi X-RAY | fitnesse Summary

fitnesse is a Java library typically used in Testing, Functional Testing, Selenium applications. fitnesse has no bugs, it has build file available and it has medium support. However fitnesse has 2 vulnerabilities and it has a Non-SPDX License. You can download it from GitHub, Maven.

Welcome to FitNesse, the fully integrated stand-alone acceptance testing framework and wiki.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              fitnesse has a medium active ecosystem.
              It has 1911 star(s) with 695 fork(s). There are 156 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 90 open issues and 650 have been closed. On average issues are closed in 366 days. There are 8 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of fitnesse is 20231029

            kandi-Quality Quality

              fitnesse has 0 bugs and 0 code smells.

            kandi-Security Security

              fitnesse has 2 vulnerability issues reported (0 critical, 1 high, 1 medium, 0 low).
              fitnesse code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              fitnesse has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              fitnesse releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 98665 lines of code, 9936 functions and 1955 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed fitnesse and discovered the below as its top functions. This is intended to give you an instant insight into fitnesse implemented functionality, and help decide if they suit your requirements.
            • Creates the indentation of the content .
            • Make a FitNesse context .
            • Initialization errors .
            • Replace all symbols in the given list
            • Print information about the socket .
            • Parse the table information .
            • Converts the list of instructions into a list of objects .
            • Gets children after the given index .
            • Checks if the parameter matches the regular expression .
            • Evaluate and format the result
            Get all kandi verified functions for this library.

            fitnesse Key Features

            No Key Features are available at this moment for fitnesse.

            fitnesse Examples and Code Snippets

            No Code Snippets are available at this moment for fitnesse.

            Community Discussions

            QUESTION

            .NET 6 System.PlatformNotSupportedException: Microsoft.Data.SqlClient is not supported on this platform With Fitnesse
            Asked 2022-Feb-09 at 11:43

            When creating a new .net 6 project with Microsoft.Data.SqlClient It works fine. But When running through a .net 6 fitnesse project with fitsharp we are getting this error:

            System.PlatformNotSupportedException: Microsoft.Data.SqlClient is not supported on this platform

            Dependancies:

            1. Fitsharp 2022.1.15
            2. Lextm.SharpSnmpLib 12.4.0
            3. Microsoft.Data.SqlClient 4.1.0

            I've tried adding true to .csproj

            That bypassed some errors, But the PlatformNotSupportedExcpetion is still present.

            When converting to a console app and running from program. It works fine. But it won't work when running through fitnesse with fitsharp

            ...

            ANSWER

            Answered 2022-Feb-09 at 11:43

            The work around for now was to downgrade Microsoft.Data.SqlClient to 2.0.1. And install the Microsoft.Data.SqlClient.SNI.Runtime v2.0.1 nuget package. Having true was needed, but this didn't copy the Microsoft.Data dll's to bin on build. So These two dll's needed to be move to bin:

            1. packages\microsoft.data.sqlclient.sni.runtime\2.0.1\runtimes\win-x64\native\Microsoft.Data.SqlClient.SNI.dll

            2. packages\microsoft.data.sqlclient\2.0.1\runtimes\win\lib\netcoreapp3.1\Microsoft.Data.SqlClient.dll

            A Similar solution was found here for .NET Core 3.1:

            Issues for Fitsharp in Github

            Naun, answered it on 13th July, but the difference for .NET 6 was to also install the Microsoft.Data.SqlClient.SNI.Runtime v2.0.1 nuget package and copy different versions of the dll's

            Source https://stackoverflow.com/questions/71022502

            QUESTION

            Fitnesse Ignore result of method
            Asked 2021-Jun-30 at 13:13

            I am trying to run this fixture code:

            ...

            ANSWER

            Answered 2021-Jun-30 at 13:13

            For slim tests (which in this case, you are using), prepend the script table row with the show keyword. It will just output the function's return value. (true/false in case of 'click if available')

            More info: http://fitnesse.org/FitNesse.UserGuide.WritingAcceptanceTests.SliM.ScriptTable

            From that link:

            • If the word show is in the first cell, then it should be followed by a function. A new cell will be added when the test is run, and it will contain the return value of the function.

            The script below should not fail on the execution of click if available:

            Source https://stackoverflow.com/questions/68193936

            QUESTION

            How to run multiple fitness suites at once?
            Asked 2021-Jun-22 at 18:06

            Is it possible to run multiple fitness suite tests at once?

            I am aware of the -Dslim.port option and setting this value to 0. Then fitness will supposedly choose an available port. However, I wasn't able to see this in action. I've always ran into this error: java.net.BindException: Address already in use (Bind failed).

            I've read some documentation here: http://fitnesse.org/FitNesse.FullReferenceGuide.UserGuide.WritingAcceptanceTests.SliM.SlimProtocol.PortManagement.

            My use case for this would be on the UI of fitnesse and not the command line.

            ...

            ANSWER

            Answered 2021-Jun-22 at 18:06

            I believe we resolved/found the issue. It was caused by a non-concurrent safe fixture (fitnesse.fixtures.SetUp of FitNesse's own test set).

            The take-away: build your own test suites directly under the FitNesseRoot directory and not below FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests

            Source https://stackoverflow.com/questions/68041204

            QUESTION

            Fitnesse Slim runner cannot load .net 5 assembly: Error extracting manifest import from file (hr = 0x80131018)
            Asked 2021-Jun-09 at 15:38

            Running a test in Fitnesse gives:

            Could not complete testing: fitnesse.slim.SlimError: Error SLiM server died before Header Message could be read.

            When using Slim RunnerW.exe to debug my test I get an exception:

            System.BadImageFormatException: Could not load file or assembly 'file:///c:\path\assemby.exe' or one of its dependencies. The module was expected to contain an assembly manifest.

            I used ProcessExplorer to check and RunnerW.exe was running in 64bit mode. My code is compiled with "Any CPU", the only difference with another working project is that it is a .net 5 (core) project using FitSharp 2.8.2.1 NuGet package.

            After enabling the FusionLog it was clear that it could not load my main test assembly. This is part of the log:

            ...

            ANSWER

            Answered 2021-Jun-09 at 15:38

            Some things that finally got me up and running:

            1: Do not reference the executable (file ending with .exe) but refer to the .dll instead. No matter how it is compiled, trying to load the the .exe file as an assembly will always throw a System.BadImageFormatException.

            2: Fish the .Net Core versions of Runner.exe and RunnerW.exe (and their dependencies) out of the NuGet package and use those instead of the older SLIM .Net runners (if you are migrating). FusionLog does absolutely nothing with .Net Core, so if there is any logging going on then you know that the process is not running .Net Core.

            3: If you got the FitSharp projects from GitHub and are linking to the projects instead of using NuGet, then remove the post build actions to copy the files. Instead go to your test project Dependencies -> Projects -> fit open Properties (F4) and set the options Reference Output Assembly, Copy Local and Copy Local Sattelite Assemblies to Yes. Do the same for the FitSharp and Runner projects.

            Source https://stackoverflow.com/questions/67690976

            QUESTION

            Fitnesse - How to define a wiki or slim variable from an environment variable or file?
            Asked 2021-Mar-27 at 13:02

            I have a password token (that changes every few minutes) that I need to pass to my SLIM tests. I can store this token in either a text file or environment variable. But once I have that password saved, I need to get my test cases to see the value. So is it possible to get a value from an environment variable or a file into a fitnesse test case?

            ...

            ANSWER

            Answered 2021-Mar-27 at 13:02

            You can read a file or environment from your fixture (Java, .Net or ..) code. I created a FileFixture that reads files (sample usage). It may be of use or could provide inspiration...

            The wiki, if it was started after the environment variable was set, could access it as a symbol (i.e. ${MY_PASSWORD_TOKEN}), but I don't expect you need that.

            By the way: if your password token changes that often it might be better/easier to write some fixture code to retrieve the current password directly, instead of first having to store it in an environment variable or file before you start your test.

            Source https://stackoverflow.com/questions/66806370

            QUESTION

            Fitnesse How to acces _root.wiki content in Java
            Asked 2021-Mar-21 at 13:27

            Pretty new to Fitnesse I am trying to figure out how to acces the _root.wiki (where we have all our database properties set) from my java code fixture extended with SlimFixture.

            What I tried so far:

            • Tried to set a symbol in the fixture.wiki, but I did not work and I think it is meant to be setted in Java and used in de Wiki. Right?
            • Tried to !define variables in Fixture.wiki, but the Fixture does not see them when debugging in Java

            What I think might work, but do not want for a reason;

            • Use the fixture parameters to add the properties. However, I am aiming to use these parameters for creating different objects in the database and with these properties added the parameter list groes.....

            My workaround idea:

            • Read the wiki file via its path and filter out the properties I need. Not very nice.

            Maybe I have it all wrong, but I hope you guys might tell me a way use wiki data in my java fixture code.

            ...

            ANSWER

            Answered 2021-Mar-21 at 13:27

            I don't believe there is an easy way to get the contents of a .wiki page in your fixture code (at least there is not supposed to be one ;-)).

            Your approach of passing parameters to your fixtures is what I would recommend. But I completely understand that passing many properties in is not very nice. Especially maintaining a large list when the same list is used in many tests in no good.

            What I would recommend that you create a (container) variable, some sort of map/hash, that you first fill with all the properties you need, and then pass that to your fixtures. In that way you only have to pass a single variable to tests and adding/removing properties does not affect how you call your fixtures. The variable is a slim variable which can be modified at runtime.

            In my fixtures project I created a MapFixture and MapOfMapsFixture that allow you, besides checking the contents of a map, to manipulate the context of a map to define such a variable. What properties to put into it can then be defined in a (Suite)SetUp or by scenarios. The project also contains sample pages showing usage of MapFixture of MapOfMapsFixture.

            For example in a SetUp page:

            Source https://stackoverflow.com/questions/66015998

            QUESTION

            Java Fitnesse Slim flexible data generator that returns ID
            Asked 2021-Mar-17 at 08:17

            i'm in a bit of a dilemma here and/or cant see other options at the moment

            I know how to call a fixture method that stores an object and returns the object with predefined parameters

            ...

            ANSWER

            Answered 2021-Mar-17 at 08:17

            You can make the approach in your last table work (although I suspect you forgot to copy the last |). I guess you are using a 'dynamic decision table' in that case? I'm not a 100% sure it works out-of-the box like that, because I never use it like that. But I suspect you need to add a ? to the create Test Car column header, to indicate it is method whose value you want to retrieve instead of set.

            I have implemented my own fixture that allows setting of symbols like that, so that does work ;-). And I know this works when the decision table is calling a scenario instead of a Java class directly.

            I general I would recommend using a scenario with output parameters in a decision table. I'm sure that works out of the box and doesn't require anything complex in the fixtures. In columns where the name ends on a ? you can either check a value against the value specified in the decision table, or assign it to a symbol. (The scenario approach also allows you to check whether the returned value meets your expected criteria before using it further on in a test.)

            Source https://stackoverflow.com/questions/66650799

            QUESTION

            Can FitNesse page tags be used in page?
            Asked 2020-Nov-12 at 08:33

            Is there a way in FitNesse to access page tags from inside the page?

            I need to change database connection strings at test start-up and would like to use a tag as a switch.

            ...

            ANSWER

            Answered 2020-Nov-12 at 08:33

            I would recommend that you create multiple top level suites, one for each environment (e.g. one for testing locally and one for Azure) that defines the environment specific settings using wiki symbols (i.e. !define ...). The tests that are to be executed in all environments can be defined is separate suite that is included in each environment's suite using a symbolic link. The tests in the shared suites use the wiki symbols to get the values for the environment they are included in.

            • This makes it explicit which settings are different between each environment
            • All different environments are visible in the wiki
            • Adding or removing an environment setting requires no (fixture) code changes
            • You can add environment specific tests for each environment (just add them to the environment's suite besides the shared tests included via symbolic link)

            Source https://stackoverflow.com/questions/64765404

            QUESTION

            Fitnesse assign value to global variable and reuse in multiple Fixtures
            Asked 2020-Oct-03 at 16:15

            Hi I am new to Fitnesse framework, and I'm trying to find a way where I can assign a value to a global variable somehow from a database sequence. I already have written few test cases using a variable on page but its value had to be changed manually each time before running test, since I have declared it as,

            ...

            ANSWER

            Answered 2020-Oct-03 at 16:15

            If you are using slim you should be able to use the variable as $prefix.

            Please note this is a different variable type, a slim symbol, as compared to the wiki variable you created using !define, you don’t need that define

            Source https://stackoverflow.com/questions/64177065

            QUESTION

            Fitnesse : how to check if path exist
            Asked 2020-May-22 at 06:10

            In a newly created wiki in Fitnesse. Say we defined a path:

            ...

            ANSWER

            Answered 2020-May-22 at 06:10

            No there is not. It is just like the Java classpath, which it configures, it defines a location where fitnesse looks for Java classes. It does not have to be a directory, it can also be a .jar, .zip or an expression with a wildcard.

            Source https://stackoverflow.com/questions/61944383

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install fitnesse

            A One-Minute Description of FitNesse
            Download FitNesse and Plugins
            The FitNesse User Guide

            Support

            Have a question that's not a feature request or bug report? Join the Gitter Community.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/unclebob/fitnesse.git

          • CLI

            gh repo clone unclebob/fitnesse

          • sshUrl

            git@github.com:unclebob/fitnesse.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link