karate dsl not support gherking lenguage spanish - karate

Can i write gherkin (Feature file) in spanish with karate dsl?
Example:
When I run this it shows me the following error:
is just a question,
karate dsl support gherking lenguage spanish or i need english lenguaje ever ?

Yes Karate supports only the English keywords. Please read this to understand why Karate is NOT a BDD framework: https://stackoverflow.com/a/47799207/143475
There are many teams across the world who use Karate in different languages because you can add comments that will appear in the report.
Here is an example in Japanese: https://acro-engineer.hatenablog.com/entry/2022/03/02/120000
More examples can be found here and here.

Related

Manual and automated test cases writing and storing

I'm going to implement bdd specflow project in a company,
So the idea is like a manual tester will write test cases using bdd gherkin syntax, then the automation tester will understand it and automate.
so my question is if anyone can recommend a platform or a way where we can store the feature files or any type of file where gherkin syntax is possible to be written. need to give access to all team members including manual, automation, and PO too.
Excel is not considered.
and free open source tool will be great.

Karate vs Spock

I've recently found Karate framework for testing Web Services. But there is also Spock framework providing similar (to my mind) functionality. What are the differences between the frameworks? I would like to suggest our testers to take a look at it.
Developer of Karate here. I have only read about Spock but here's my PoV.
Karate is laser-focused on testing HTTP web-services, and therefore is designed to manipulate and perform assertions on JSON and XML. As a result - you do not need POJO-s any-more.
Whereas Spock is a general-purpose testing framework. It is based on Groovy, so it reduces the verbosity somewhat compared to if you just used Java, and it adds the BDD flavor that is of value in expressing test-cases. Just like Karate, it has a structure to test-cases, a life-cycle (before hooks, environment switching, etc.) data-driven test helpers, and integration with unit-test and reporting frameworks such as JUnit.
A key difference IMO is that while Spock and similar frameworks try to abstract away the verbosity of Java in favor of a cleaner more readable syntax - they succeed only to a certain extent. Karate almost bypasses Java completely (from a test writers PoV) which means that you are operating in the exact 'layer' that you want to - which is HTTP and JSON / XML.
I'd like to point you to this comparison between Karate and REST-assured - since some of the points would apply to Spock as well, and it would be a helpful reference for any team evaluating Karate.
EDIT - Karate's data-driven testing is very similar to Spock, and uses JS (that can do Java interop) instead of Groovy: https://twitter.com/KarateDSL/status/1359369240227106816

What are the scripting languages one should know to effectively use the Selenium tool for automation testing

I am a fresher and being hired as a Quality Analyst in a software firm in automation testing
I have been told to study the Selenium tool.
Can you guys help me in knowing that what are the scripting languages I should get in touch so that I can effectively and efficiently use the tool to give the very best output of mine,
Hoping for responses....It would definitely help me a lot in going in proper direction....
Thanks in ADVANCE
Not exactly scripting languages, but be very fluent with HTML and XML/XPath to easily work with pages and understand how they work.
Knowing a little about JavaScript will also come in handy. As for other languages, Selenium natively speaks HTML, but you can write test cases in any of the following languages (list is not exhaustive):
C#
Java
Perl
PHP
Python
Ruby
Native HTML test case can be translated easily to the aforementioned languages, pick whichever you like the most.
You can get all these details from seleniumhq.org site. Please check the documentation section . Also, regardless of the language you choose selenium features remain the same. So choose the language which you are comfortable with.
Adding to what others have already said, to begin programming with your favorite language using Selenium RC, you need to be familiar with the basic Object Orient Programming concepts.
To help you with XPath there are tools like XPather and Firebug which automatically fetch you the XPath of the element.
The perl language binding is quite reliable and up-to-date.
On the CPAN, the current release Test-WWW-Selenium-1.25 is from 28 Apr 2011. It's actively maintained.
Perl's Test Runners and TAP are cool. There are many other testing modules that you can combine with Test-WWW-Selenium.
Using E-P-I-C perl Editor for the Eclipse IDE, you'd get statement completion in your testcase files.
The Perl API calls are written in a slightly different naming convention: for instance, getEval becomes get_eval
but this is a minor point.
IMHO, the perl code template that Selenium IDE generates for you is ok, it can be adapted. (e.g. I prefer Test::Fatal instead of Test::Exception.)
Cannot say anything about the other language bindings.
Choose the language you are most familiar with, and start building up your expert knowledge of testing tricks, Selenium and browser idiosyncrasies. this will take a lot of time anyway.
For any kind of strong automation, you should know atleast one scripting language like JavaScript, VBScript etc... and one full fledged programming language like Java, C# etc.. benefit of learning java or #C is ... you are comfortable in developing complex solutions because of their OOP nature and Java,C# are widely used in IT Industry.
Robot Framework is a robust scripting engine and reporting tool for automation testing.

What BDD Frameworks are people using with Mono/MonoDevelop

I want to start using Behaviour Driven Development (BDD) in Mono/MonoDevelop using a natural language approach like Cucumber or SpecFlow.
Is anyone doing this and, if so, what have they used and was it straightforward to set up.
Thanks
Neil
SpecFlow (www.specflow.org) is a BDD tool for .NET, that is now also running on Mono/MonoDevelop.
You can read about that here: http://groups.google.com/group/specflow/browse_thread/thread/43d32a8f27bfbe92
Br,
Gaspar

How to create an Eclipse editor plugin with syntax checking and coloring as fast as possible?

I'm working on a project that requires me to create a series of editors for languages that are quite different. The syntaxes are defined by us.
I'm looking for a solution for this.
Is there a shortcut to take in this problem?
You could use XText:
a framework for development of textual domain specific languages (DSLs).
Just describe your very own DSL using Xtext's simple EBNF grammar language and the generator will create a parser, an AST-meta model (implemented in EMF) as well as a full-featured Eclipse text editor from that.
Alternatives to XText are Rascal or Spoofax, both less popular than XText but interesting for they support more general context-free grammars, among other things. Nice to check out.
If you are looking for a more low level, programmable solution, then Eclipse's IDE Meta-tooling platform is a good choice (IMP).
What IMP gives you is API to connect your existing parsers to Eclipse without much hassle. You need to implement an IParseController interface, to call your parser and ITokenIterator to produce tokens and some other interface to assign fonts to each kind of token.
The aforementioned Rascal and Spoofax are both build on top of IMP.
Not mentioned is DLTK (proposed also in Tutorial regarding the development of a custom Eclipse editor)
There are Ruby, bash that are implemented with it.