Is there a way to convert slim fixture fitnesse test scripts to karate test scripts? - migration

We have a lot of test scripts written in fitnesse using SLIM fistures. Now we want to adopt karate framework. Is there a way to migrate easily those test scripts to karate test scripts? That would reduce a lot of effort.
Example of a Slim fixture test script :
*!
!***> !style_blue [1) Rule-PG Assignment Creation]
!***> Create Dataset(s)
!***> DS1 Iv Type is CS
!define Index {1}
!define DatasetName {CS_FUT_dataset}
!|Hds ConditionSet Details |
|ConditionsetId|ConditionId|Condition|ConditionOperator|RhsType|RhsValues|IncludeNull|Direction|Operator|Percentage|Delink|URE |Level|
|1 |1 |${IvType}|= |Scalar |CS,FUT | | | | | |DIRECT or URE|All |
!include -c .FrontPage.IceEndToEndRegressionSuite.TemplatesSuite.RuleConstruct.HoldingsDatasetCreationTemplate
*!
!***> Test Category Dataset
!include -c .FrontPage.IceEndToEndRegressionSuite.TemplatesSuite.RuleConstruct.PreDefinedGroupByTemplates.GroupBy_MasterIssuer
*!

Related

railflow cli command ignores the cucumber steps with data table. and only shows one line

we just started using testrail with railflow and I am using railflow cli command to create test cases that are written in cucumber/gherkin style. Test results are converted into json files and railflow cli reads those json files and create test cases in test rail. up to this point, everything works fine. However, recently realized that test scenarios where I use data table are not being transferred to my test case in test rail. Anyone had similar issue or suggesting any solution for this?
Here is cucumber step:
Then I verify "abc" table column headers to be
| columnName |
| Subject |
| Report Data |
| Action |
| ER Type |
in test rail, it only includes the header which is " Then I verify "abc" table column headers to be
"
any suggestion is appreciated.
we are constantly improving Railflow and reports handling, so we are more than happy to add support for the cucumber data tables.
Please contact the support team via our website
Update: This is now implemented and available in Railflow NPM CLI v. 2.1.12

How to create testing.xml at run time from excel

I wanted to generate testing.xml file at run time and for that I need to read test case name along with test data from excel file based on flag y/n and generate testng.xml
I am not getting how or is there any listener I can use to generate testng.xml so before actual execution I will have testng read. Or if I will write a code to create xml then what will be the right place to call that code
same test data and test case name I need to pass to #dataprovider
excel :
run | test case | username | password
Y | abc1 | test1. | pwd
N. | abc2 | test2 | pwd

Chrome Selenium IDE 3.4.5 extension "execute script" command not storing as variable

I am trying to create a random number generator:
Command | Tgt | Val |
store | tom | tester
store | dominic | envr
execute script | Math.floor(Math.random()*11111); | number
type | id=XXX | ${tester}.${dominic}.${number}
Expected result:
tom.dominic.0 <-- random number
Instead I get this:
tom.dominic.${number}
I looked thru all the resources and it seems the recent selenium update/version has changed the approach and I cannot find a solution.
I realize this question is 2 years old, but it's a fairly common one, so I'll answer it and see if there are other answers that address it.
If you want to assign the result of a script run by the "execute script" in Selenium IDE to a Selenium variable, you have to return the value from JavaScript. So instead of
execute script | Math.floor(Math.random()*11111); | number
you need
execute script | return Math.floor(Math.random()*11111); | number
Also, in your final assignment that puts the 3 pieces together, you needed ${envr} instead of ${dominic}.

Functional/acceptance testing - multilanguage websites

Any best practices of creating acceptance and functional tests for multilingual sites? I would like to test content and functionality on multiple languages but not duplicate the tests.
If we take Behat, how to arrange a test environment from the very beginning?
You could use Scenario Outlines: http://behat.readthedocs.org/en/v2.5/guides/1.gherkin.html#scenario-outlines
language | label1 | label2 |
es | Hola | Adios |
en | Hello | Bye |

"-" character is converted to ? in console for gherkin language used in cucumber feature file

I am using cucumber feature file to execute or write my test cases. Issue is that I am using data table as :
| abc | 1234567890 |
| defg | New Activation – Monthly (Credit in store) |
Now issue is this that console is throwing an error that :
Cannot locate element with text: New Activation ? Monthly (Credit in store).
I am not able to understand why ? is being displayed instead of "–" .