fitnesse-slim

Can FitNesse page tags be used in page?

心已入冬 提交于 2021-01-29 05:17:18
问题 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. 回答1: 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

How to include dynamic image URL in Fitnesse SLIM tests?

元气小坏坏 提交于 2020-02-07 05:11:25
问题 Images can be included Fitnesse Wiki pages using !img tag (e.g. !img /files/images/sample.jpg). Where I am trying to include an image using a dynamic value (like !img /files/images/${testCase_name}.jpg). Here the URL is taken till $ symbol only and the rest is displayed as a text in wiki page. image is not displayed. Any ideas on displaying an Image with dynamic value in the URL??? 来源: https://stackoverflow.com/questions/58729885/how-to-include-dynamic-image-url-in-fitnesse-slim-tests

Float value in SLIM query table comparison

旧时模样 提交于 2019-12-24 10:58:31
问题 I am fairly new to Fitnesse. I am using the Subset Query Table. It works fine except when I have to compare a float value. Is there a any way I can compare the values to certain level of accuracy ? For instance the test should pass when I compare 4.12 to 4.1234. But right now, it looks like it is making a string comparison and it fails. Is there anyway I can override the validation part ? 回答1: You can use the tilde character to mean 'approximately equal to', e.g. ~=4.12 See http://fitnesse

Fitnesse importing util.ListUtility.list; is giving error

泪湿孤枕 提交于 2019-12-13 05:44:06
问题 I am trying to import static util.ListUtility.list; but it is giving error: The import util.ListUtility cannot be resolved I have fitnesse-standalone.jar in my path. I explored util package in jar. It seems that it is not any more. I downloaded latest version of fitnesse.Is it deprecated and not supported any more? I also tried with fitnesse.util.ListUtility but no avail. Thanks a lot. 回答1: It is resolved, as util.ListUtility.list; is not in fitnesse jar so I created the class in my source

Connect dbslim with Fitnesse

会有一股神秘感。 提交于 2019-12-13 00:46:43
问题 I'm trying to connect to a database from Fitnesse, but it keeps giving an error message. I'm using dbslim of MarkFink: https://github.com/markfink/dbslim the message I keep getting is: Could not invoke constructor for DbSlimSetup this is my current page: !contents -R2 -g -p -f -h !define TEST_SYSTEM {slim} !*> setup |import| |fitnesse.slim.test| |fitnesse.fixtures| |slim| | script | Db Slim Setup |!-oracle.jdbc.driver.OracleDriver-!| jdbc:oracle:thin:@host_name:1521:database_name | username |

Fitnesse: SLiM server died before a connection could be established

梦想的初衷 提交于 2019-12-12 05:59:09
问题 Problem Description I think I have uncovered a bug in Fitnesse SliM, more specifically after version 20140901. When starting a test in Fitnesse I get the following error: Could not complete testing: fitnesse.slim.SlimError: Error SLiM server died before a connection could be established. My OS is Windows 7 and I'm running Fitnesse in a Java project which uses jdk1.7. Problem Diagnosis I have performed some diagnosis to try to figure out what could be the reason for this error. I am

How to write POST / PUT requests using RestFixture

旧街凉风 提交于 2019-12-12 03:09:42
问题 I am trying to use smartrics-RestFixture-3.0-bin.zip for POST request but it's failing for some reason. Looks like a service problem itself but as I am learning Fitnees, not sure if anything is wrong with the Test as well. Can anyone please share some details, or example for POST rest request using RestFixture/Wiki format using Demo REST APIs - http://www.thomas-bayer.com/sqlrest/CUSTOMER/ My wiki based TC looks like below - (I am trying to add Customer data with ID = 20) '''Trying to add

Fitnesse Maven Classpath error

喜欢而已 提交于 2019-12-11 14:49:15
问题 I am trying to set up Fitnesse on my current project. pom.xml configuration has: <!-- https://mvnrepository.com/artifact/org.fitnesse/fitnesse --> <dependency> <groupId>org.fitnesse</groupId> <artifactId>fitnesse</artifactId> <version>20161106</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.fitnesse.plugins</groupId> <artifactId>maven-classpath-plugin</artifactId> <version>1.9</version> <scope>runtime</scope> </dependency> <plugins> <plugin> <artifactId>maven-antrun

I am getting error in FitNesse while slim communication with browser _ Could not send/receive data with SUT

 ̄綄美尐妖づ 提交于 2019-12-11 00:29:01
问题 The error I got is fitnesse.testsystems.slim.SlimCommunicationException: Could not send/receive data with SUT FitNesse Code: !define TEST_SYSTEM {slim} !path C:\FitNesseUsingSelenium\bin\Debug*.dll !define COMMAND_PATTERN {%m -r fitSharp.Slim.Service.Runner %p} !define TEST_RUNNER {C:\FitSharp.2.5.0\lib\net40\Runner.exe} !|import| |FitNesseUsingSelenium| !|FitSeleniumFramework| |TextInTitle|isTitleCorrect?| |Google|yes| |google|no| |bing|no| Actually is it opening and closing the browser

Fitnesse Slim: How to concatenate symbol

不羁的心 提交于 2019-12-10 18:22:17
问题 How would one concatenate a symbol with text on either side? For example: Prefix: "GAR_" Variable: $todayDate Suffix: "_1" GAR_$todayDate_1 Which would evaluate to: GAR_07202012_1 When running the test in fitnesse, it seems as though the concatenation is working ( GAR_$todayDate->[07202012]_1 ). However, I am passing this value as a parameter to visual studio and I instead end up with the following text: GAR_$todayDate_1 . When I remove the suffix or put a space between $todayDate and "_1" ,