Comments (3)
You can write a translator something like this (I haven't tested this code):
using System.Collections.Generic;
using fitSharp.Fit.Engine;
using fitSharp.Fit.Operators;
using fitSharp.Machine.Model;
namespace My.Operators {
public class KeywordTranslator: CellOperator, InvokeSpecialOperator {
public bool CanInvokeSpecial(TypedValue instance, MemberName memberName, Tree<Cell> parameters) {
return translations.ContainsKey(memberName.Name);
}
public TypedValue InvokeSpecial(TypedValue instance, MemberName memberName, Tree<Cell> parameters) {
return new InvokeFlowKeyword {Processor = Processor}
.InvokeSpecial(instance, new MemberName(translations[memberName.Name]), parameters);
}
readonly Dictionary<string, string> translations = new Dictionary<string, string> {
{"vérifier", "check"}
};
}
}
Then add it in suite.config.xml:
<suiteConfig>
...
<Fit.Operators>
<Add>My.Operators.KeywordTranslator</Add>
</Fit.Operators>
</suiteConfig>
from fitsharp.
AH, brilliant! We'll try it out and let you know if it worked.
from fitsharp.
Just to let you know that this worked brilliantly. Only the Ignore keyword couldn't work this way, so we kept that in an custom dofixture.
Thanks for the help!
from fitsharp.
Related Issues (20)
- Execution Time for a Stored Procedure
- x64-bit version build target and nuget package. HOT 1
- WebDriver fixture tests raise exception in FitSharp 2.7.1 HOT 4
- Cant get fitsharp working on linux HOT 5
- Get fitsharp + fitnesse to work inside of docker HOT 1
- SDK Style Projects and multitarget net472 and netcoreapp3.1 HOT 3
- Not working with .Net Core 3.1 because of Microsoft.Data.SqlClient HOT 4
- FitSharp is not getting built/compiled with .Net SDK netstandard2.0 HOT 1
- Abandon Story on first exception HOT 3
- Can't get old simple samples to work. HOT 7
- How to start dbfit .net server HOT 2
- .NET 5 Support ( platform specific? ) HOT 1
- How to implement a Precision Tolerance feature HOT 7
- How to map all the code referenced from the Fitnesse tests? HOT 24
- .NET 6 Support ( platform specific? ) HOT 1
- Not working with .Net 6 because of Microsoft.Data.SqlClient HOT 1
- Execution log link missing when running with version 2.7.1 or later HOT 1
- RunnerW is missing from the net6.0 target HOT 2
- Root page definition for fitsharp •net 5 framework HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fitsharp.