Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update content.txt #1506

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
The names of fixtures, methods, inputs, and outputs can be expressed in two forms. They can match their corresponding names in the fixture classes, or they can be ''graceful''.
The names of fixtures, methods, inputs, and outputs can be expressed in two forms.
They can match their corresponding names in the fixture classes, or they can be ''graceful''.

A ''graceful name'' looks like it is written in human language rather than computer language. It has spaces that separate the words and may have a period at the end. Slim will convert ''graceful names'' into the names of the classes and methods they refer to. So for example:
A ''graceful name'' looks like it is written in human language rather than computer language. It has spaces that separate the words and may have a period at the end.This is a strategy and the exact implementation depends on the type of table being executed. It is better when you define output methods with 'graceful names' to put a ? in the end of the name in order to be specified that it is an output method and not input (set method).
For example, in the case of a [[Query Table][<FitNesse.UserGuide.WritingAcceptanceTests.SliM.QueryTable]], column names in the front end must exactly match those in the corresponding Fixture. So, it is always helpful to take a closer look at a specific [[table documentation][<FitNesse.UserGuide.WritingAcceptanceTests.SliM]].

!|Graceful Name|Fixture Name|Method Name|
|slim test|SlimTest|slimTest|
|login user.|LoginUser|loginUser|
|Open connection and add user.|OpenConnectionAndAddUser|openConnectionAndAddUser|
Slim will convert ''graceful names'' into the names of the classes and methods they refer to. So for example:

!|Graceful Name|Fixture Name|
|slim test|SlimTest|
|login user.|LoginUser|
|Open connection and add user.|OpenConnectionAndAddUser|

!|Graceful Name|Method Name|
|slim test?|slimTest|
|login user ?|loginUser|
|Open connection and add user?|openConnectionAndAddUser|

In some cases, fixture names and method names do not follow this convention. For this reason FitNesse will also try the following names:

!|Graceful Name|Fixture Name|Method Name|
|slim test|slimTest|SlimTest|
|login user.|loginUser|LoginUser|
|Open connection and add user.|openConnectionAndAddUser|OpenConnectionAndAddUser|
!|Graceful Name|Fixture Name|
|slim test|slimTest|
|login user.|loginUser|
|Open connection and add user.|openConnectionAndAddUser|

!|Graceful Name|Method Name|
|slim test?|SlimTest|
|login user ?|LoginUser|
|Open connection and add user?|OpenConnectionAndAddUser|