|
| 1 | +--- |
| 2 | +slug: introducing-numeric |
| 3 | +title: Introducing Numeric |
| 4 | +authors: [jan-molak] |
| 5 | +tags: |
| 6 | + - core |
| 7 | + - web |
| 8 | + - rest |
| 9 | + - open-source |
| 10 | +--- |
| 11 | + |
| 12 | +Love numbers? You'll love Serenity/JS 3.29! π |
| 13 | + |
| 14 | +Weβre excited to share the latest release of Serenity/JS, which is packed with new powerful features for handling numeric data in your automated tests! |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | +## New to Serenity/JS? |
| 19 | + |
| 20 | +Serenity/JS web testing tutorial was called "the best guide if you want to take your automation skills to the next level." β€οΈ |
| 21 | + |
| 22 | +If you're new to Serenity/JS or web automation in general, start with ["Your first web scenario"](/handbook/web-testing/your-first-web-scenario/). |
| 23 | + |
| 24 | +## New in Serenity/JS 3.29 |
| 25 | + |
| 26 | +### Built-in support for arithmetic operations |
| 27 | + |
| 28 | +Part of the [Serenity/JS Core module](/api/core/), the new [`Numeric`](/api/core/class/Numeric/) class offers built-in support for performing arithmetic operations |
| 29 | +on both synchronous and asynchronous data types directly within your Serenity/JS test scenarios. |
| 30 | + |
| 31 | +In addition, this new class offers methods to help you extract numeric data from REST API responses and web interfaces |
| 32 | +and convert it to a desired numeric data type without any external libraries or complex workarounds. |
| 33 | + |
| 34 | +This enhancement makes your tests more readable, reduces the risk of calculation errors, and ensures data-driven scenarios are both easy to implement and maintain. |
| 35 | +With `Numeric`, your test logic is cleaner, making Serenity/JS even more developer-friendly. |
| 36 | + |
| 37 | +Learn about [`Numeric`](/api/core/class/Numeric/). |
| 38 | + |
| 39 | + |
| 40 | +### More Serenity/JS examples in your IDE! |
| 41 | + |
| 42 | +We continue our effort to bring the thousands of examples available in the [Serenity/JS API documentation](/api/) close to you and your team. |
| 43 | +As part of that, the new [`Numeric`](/api/core/class/Numeric/) class ships with **15 new examples**, demonstrating how to extract numeric data from user interfaces and data objects. |
| 44 | +You'll also learn how to use the new features with [Serenity/JS Page Element Query Language](/handbook/web-testing/page-element-query-language/) to make extracting the right UI element even easier! |
| 45 | + |
| 46 | +Check out the Serenity/JS API docs at https://serenity-js.org/api/ |
| 47 | + |
| 48 | +Enjoy Serenity! |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +## Your feedback matters! |
| 54 | + |
| 55 | +I hope this latest release of Serenity/JS will make it even easier for you and your team to create high-quality test automation. |
| 56 | + |
| 57 | +Let me know what you think of the new features in the [comments below](/blog/better-api-documentation/#giscus-comments) πππ |
| 58 | + |
| 59 | +### π£ Stay up to date |
| 60 | + |
| 61 | +New features, tutorials, and demos are coming soon! |
| 62 | +Follow [Serenity/JS on LinkedIn](https://www.linkedin.com/company/serenity-js), |
| 63 | +subscribe to [Serenity/JS channel on YouTube](https://www.youtube.com/@serenity-js) and join the [Serenity/JS Community Chat](https://matrix.to/#/#serenity-js:gitter.im) to stay up to date! |
| 64 | +Please also make sure to star βοΈ [Serenity/JS on GitHub](https://github.com/serenity-js/serenity-js) to help others discover the framework! |
| 65 | + |
| 66 | +[](https://www.linkedin.com/company/serenity-js) |
| 67 | +[](https://www.youtube.com/@serenity-js) |
| 68 | +[](https://matrix.to/#/#serenity-js:gitter.im) |
| 69 | +[](https://github.com/serenity-js/serenity-js) |
| 70 | + |
| 71 | +### π Support Serenity/JS |
| 72 | + |
| 73 | +If you appreciate all the effort that goes into making sophisticated tools easy to work with, please support our work and become a Serenity/JS GitHub Sponsor today! |
| 74 | + |
| 75 | +[](https://github.com/sponsors/serenity-js) |
0 commit comments