|
Hi Mauro, ;-) Finally I could found what is the problem with my Brazilian Portuguese/ jbehave testing program .... It is all because the class StepsConfiguration that is created on Step default constructor. This class is not using the resource bundle created by you. It is using the constant DEFAULT_STARTING_WORDS that is on English, look: public class StepsConfiguration { public static final String[] DEFAULT_STARTING_WORDS = new String[] { "Given", "When", "Then", "And" }; So jbehave fails on execute method UnmatchedToPendingStepCreator.createStepsFrom(ScenarioDefinition scenario, Map<String, String> tableRow, CandidateSteps... candidateSteps) for portuguese steps. Another problem I could see is that there is a encode problem with your keywords_pt_properties file. The problem is exatly the one that I tried to warn you on my last email: Your file was saved on ISO8859-1(windows) but containing UTF-8 way portuguese caracters. Im sending to you a new file writted and saved as UTF-8. You can create another one writing and saving it on ISO8859-1 (do no copy and paste from mine). And if you do so, take care to configure your default editor to always open it and save it on same encode, because there is no way to convert Latin caracter between both encodes :-) I really had soffer a lot with this issue yet ;-) I have created my own StepsConfiguration with portuguese words and have changed the properties file and everything runs ok now. I hope I could help you. And congratulations to you and all jbehave team for the EXCELLENT job.. Its really an amazing tool !!!! best regards Cristiano Mauro Talevi escreveu: Cristiano Gavião wrote: |
Scenario=Cenário: GivenScenarios=Dados os cenários: ExamplesTable=Exemplos: ExamplesTableRow=Exemplo: Given=Dado que When=Quando Then=Então And=E Pending=PENDENTE NotPerformed=NÃO EXECUTADO Failed=FALHADO
--------------------------------------------------------------------- To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
