fitnesse

Selenium: How do I use javascript to clear a value from a form field?

心已入冬 提交于 2019-12-24 05:37:26
问题 I'm using the selenium IDE and the Selenium-Fitnesse Bridge fixture and I'm trying to test that when I clear a default value out of a form field, my form displays an error message. So when I record with the Selenium IDE, what it does is the equivalent of telling Selenium to type nothing. | type | text_field | | The problem with this is that the Fitnesse fixture I'm using expects that second argument to not be null. Is there a way in Selenium to "clear a value" rather than "typing nothing"?

Selenium: Is it possible to concatenate an xpath with a variable?

丶灬走出姿态 提交于 2019-12-24 01:12:47
问题 The xpath of my elements are becoming extremely hard to read. //div[@id='main_content']/div[2]/div[2]/div[2]/div[4]/table/tbody/tr[2]/td/form/fieldset/p[1]/input It would be nice if I could store most of that as a variable and use it later like this: | assertElementPresent | ${myForm} . /fieldset/p[1]/input | Is something like this possible? It would make my tests so much easier to read! 回答1: You really should anchor your selenium espressions in ID's of elements instead. In 2 months, no-one

XML input/output with Fitnesse

╄→гoц情女王★ 提交于 2019-12-23 16:54:49
问题 I want to create automated tests which accept XML and verify that the XML returned is what was expected. Also, the end user needs to be able to add new data (XML input + expected XML output) without having to get into the code. It seems like Fitnesse should be able to do this, but I haven't figured out a good way to do it yet. Any recommendations? Tools other than Fitnesse that will work better? The code which needs tested is in .NET. Eventually I would like to integrate these test results

fitnesse二次开发

你离开我真会死。 提交于 2019-12-23 01:40:26
自动化测试,首先想到的就是fitnesse。但是毕竟fitnesse功能优先,在自动化测试中,会遇到瓶颈。这个时候就需要对fitnesse进行二次开发。fitnesse不但有可以直接部署运行的jar包,在github上也可以下载到源代码。 源码是用gradle工具进行构建的。 Github下载地址 : https://github.com/unclebob/fitnesse.git 一、Gradle安装 我使用的是 IDEA 2017 ,对应的gradle版本是3.5,安装过程很简单,网上一查便知。完成后需要配置系统环境变量: GRADLE_HOME、GRADLE_USER_HOME 以及 path 变量。 Path变量 打开cmd命令行,然后运行 gradle -v ,会显示gradle的信息,则表示安装成功。 二、IDEA导入fitnesse项目 打开idea,导入项目后,需要配置很多信息。gradle目录下的gradle-wrapper.properties中改成版本3.5 distributionBase = GRADLE_USER_HOME distributionPath = wrapper/dists distributionUrl = http\://services.gradle.org/distributions/gradle-3.5-bin.zip

workflow of creating tests using RestFixture

蓝咒 提交于 2019-12-17 18:59:11
问题 Newbie to fitnesse, I want to test Rest APIS using RestFixture, but did not know where to start. Can some one give me step by step workflow and the sample decision table for GET, POST,and DELETE requests. we use Json responses how can i input them in the decision tables when posting it? Thanks 回答1: This answer provides a cookbook to install RestFixture and a section to present the Acceptance test framework. Installation One way to understand how to start with RestFixture is look at

Using data from fitnesse table as a variable

二次信任 提交于 2019-12-14 02:34:13
问题 I'm just getting started with Fitnesse. I am trying to use a result of a query (number?) and with that result use it in another test fixture. so e.g. !|Create Account | |Contractor No |Account State |Account Name |Account Type |Invoice Template Name|Number?|Result?| |${ContractorNo}|${AccountState}|${AccountName}|${AccountType}|${InvoiceTempName} | |TRUE | !|Check Account | |AccountNo |Account Exists?| |(result from number?)|TRUE | is there anyway of doing this? ive tried this:

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