Coming in Version 2 #56
Labels
assigned
Somebody is working on this issue
dependencies
Pull requests that update a dependency file
enhancement
New feature or request
feedback desired
language
Related to the Concordia Language
performance
Ideas on how to improve Concordia's performance
Milestone
Last Update: October 11th, 2021
π Try it now:
v2
Version 2 is heading language extension and better integration with automation tools. Multiple environment, concurrent test script execution is one of our targets. A new language documentation is under construction. As always, your feedback is welcome and it helps to improve the language and the tool.
Some notes:
Language
Breaking Changes
Date values for UI Elements of the data types
date
anddatetime
do not accept dot (.
) anymore. For instance,"2020.12.31"
is not considered valid from now on. You can still use slash (/
) or dash (-
) instead, such as in"2020/12/31"
or"2020-12-31"
.Now the data type
time
represents a time value without seconds, which is more common for user input. The new data typelong time
was introduced to represent time values with seconds (see News).Now the data type
datetime
represents a datetime value without seconds, which is more common for user input. The new data typelong datetime
was introduced to represent time values with seconds (see News).What's New
New UI Element data type
long time
(orhora longa
in Portuguese) to represent time values with seconds, in substitution oftime
.New UI Element data type
long date time
(ordata e hora longa
in Portuguese) to represent datetime values with seconds, in substitution ofdatetime
.New UI Element property
locale
that indicates the locale of UI Element's values using BCP 47 / RFC 5646, such aspt-BR
,pt-PT
,en-US
,en-GB
, etc. Example:- locale is "en-GB"
.New UI Element property
locale format
that indicates the locale format of UI Element's values. Date and time values use Unicode Date Format from TR 35. Example:- locale format is "MM-dd-yyyy"
.Support to date expressions (in English and Portuguese) from Add language support to represent the current date and timeΒ #40 and more. Examples:
last year
/ano passado
last month
/mΓͺs passado
last week
/semana passada
the day before yesterday
/anteontem
yesterday
/ontem
today
/hoje
tomorrow
/amanhΓ£
the day after tomorrow
/depois de amanhΓ£
next week
/semana que vem
next month
/mΓͺs que vem
next year
/ano que vem
2 years ago
(or any number) /2 anos atrΓ‘s
(ou outro nΓΊmero)2 months ago
(or any number) /2 meses atrΓ‘s
(ou outro nΓΊmero)2 weeks ago
(or any number) /2 semanas atrΓ‘s
(ou outro nΓΊmero)2 days ago
(or any number) /2 dias atrΓ‘s
(ou outro nΓΊmero)in 2 days
(or any number) /em 2 dias
(ou outro nΓΊmero)in 2 weeks
(or any number) /em 2 semanas
(ou outro nΓΊmero)in 2 months
(or any number) /em 2 meses
(ou outro nΓΊmero)in 2 years
(or any number) /em 2 anos
(ou outro nΓΊmero)"
). These values' format varies according to the current language. For instance, December 31th, 2020 can be denoted in English by12/31/2020
, while in Portuguese by31/12/2020
.12/25/2020
12/25
day of
/dia de
+ date expression. Examples:day of today
/dia de hoje
day of last week
/dia da semana passada
month of
/mΓͺs do
+ date expression. Examples:month of last month
/mΓͺs do mΓͺs passado
month of yesterday
/mΓͺs de ontem
year of
/ano de
+ date expression. Examples:year of today
/ano de hoje
year of next year
/ano do ano que vem
day of
/dia de
+ numbered date expression. Example:day of 2 days ago
/dia de 2 dias atrΓ‘s
month of
/mΓͺs do
+ numbered date expression. Examples:month of 2 months ago
/mΓͺs de dois meses atrΓ‘s
year of
/ano de
+ numbered date expression. Examples:year of 2 years ago
/ano de 2 anos trΓ‘s
Support to time expressions (in English and Portuguese) from Add language support to represent the current date and timeΒ #40 and more.
23:59:59
23:59
now
,current time
/agora
,hora atual
last hour
/ΓΊltima hora
last minute
/ΓΊltimo minuto
last second
/ΓΊltimo segundo
2 hours ago
/2 horas atrΓ‘s
2 minutes ago
/2 minutos atrΓ‘s
2 seconds ago
/2 segundos atrΓ‘s
in 2 seconds
/em 2 segundos
in 2 minutes
/em 2 minutos
in 2 hours
/em 2 horas
hour of
/hora de
+ time expression. Examples:hour of now
/hora de agora
hour of the last hour
/hora da hora passada
minute of
/minuto de
+ time expression. Examples:minute of last minute
/minuto do minuto anterior
minute of the last hour
/minuto da ΓΊltima hora
second of
/segundo de
+ time expression. Example:second of now
/segundo de agora
Support to datetime expressions (in English and Portuguese) from Add language support to represent the current date and timeΒ #40.
current date and time
/data e hora atuais
ordata e hora atual
12/31/2020 23:59:59
(English) or31/12/2020 23:59:59
(Portuguese)12/31/2020 23:59
(English) or31/12/2020 23:59
(Portuguese)Compiler
What's New
concordia --hlp
gives youInvalid option: "--hlp". Did you mean "--help"?
--file
now automatically filters the test cases to generate and the test scripts to run. For instance, whether you pass--file=login.feature
it will only execute the corresponding test script (e.g.login.js
).--file
is now able to automatically include dependencies.--script-file
to filter the test script file or files to execute. Example:--script-file="file1.js,path/to/file2.js
--script-grep
to send a text or a regular expression to filter the test scripts to run. Example:--script-grep Login
to execute only the test scripts with the word "Login". (*)--target
to indicate the target browsers or platforms to execute the test scripts. Example 1:--target firefox
. Example 2:--target "firefox,chrome"
. (*)--headless
to indicate the execution in headless a browser, whether available. Example:--target chrome --headless
. It does not have effect for targets other than browsers. (*)--instances
to indicate the number of parallel instances to execute. Example:--instances 2
will split the test scripts into two groups that will execute in parallel. (*)--config
to indicate the path of the configuration file. Example:--config path/to/.concordiarc
.--plugin-update
to update a plugin package.--db-list
to list installed database drivers.--db-install
to install one or more database drivers.--db-uninstall
to uninstall one or more database drivers.--locale-list
to list available locales.-x
as an alias to--no-run
.--no-result
..testcase
) are now deleted automatically when they have no test cases. This also avoids generating the corresponding test script files.--verbose
.date type
is not declared.en
(English) use the localeen-US
(American English), while documents inpt
(Portuguese) use the localept-BR
(Brazilian Portuguese).format
now considers the parameter--random-max-string-size
.--init
.--init
.--init
since database drivers are not installed by default anymore (see Breaking Changes).concordia.report.json
.*= Plug-in should offer support to it.
Changes
.testcase
) with the same name of feature files (.feature
), since they are generated again.--help
.--verbose
for a detailed output.Breaking Changes
Requires NodeJS
10.14
or later. NodeJS project has dropped its support to NodeJS8
and many libraries and tools used by Concordia Compiler are also upgrading. Unfortunately, fixes and improvements are being only published to versions that support NodeJS 10+.Database drivers are not installed by default anymore. Now the needed drivers must be manually installed or picked when using
--init
. This change reduces the installation size considerably.New plug-in structure.
Test data produced for the data type
time
considers the minutes, instead of the seconds. For example, the next value for12:30
will be12:31
instead of12:30:01
. You can use the new typelong time
to consider the seconds, instead of the minutes.Test data produced for the data type
datetime
consider the minutes, instead of the seconds, like fortime
. For example, the next value for2020/12/31 12:30
will be2020/12/31 12:31
instead of2020/12/31 12:30:01
. You can use the new typelong datetime
to consider the seconds.Updates the plug-in API.
Default directory for features changed from
./features
to.
(current directory).Default directory for test scripts changed from
./tests
to.
(current directory).Default directory for test execution output changed from
./output
to.
(current directory).Removes the CLI option
--dir-test-cases
.Removes the CLI option
--extensions
.Internal Changes
79
to110
(+39%)697
to1354
(+94%)56
to40
(-29%)585
to519
(-11%)Fixes
Being Considered
To adopt one of the following formats to use the property
locale format
with numbers:Β€
Special comment
#locale
to indicate the current locale. Example:en-GB
. The locale will not be used to understand the document's language. When not given, the locale will assume the document's language. American English (en-US
) will be assumed for documents in English. Brazilian Portuguese (pt-BR
) will be assumed for documents in Portuguese.New CLI parameter
--locale
to set the default locale.Improved data test case generator.
The text was updated successfully, but these errors were encountered: