Categories
Automated Testing

Limitation for Automated Testing

8 limitations to consider when testing web applications with Selenium and JavaScript:

  1. Limited to Web Applications: Selenium is primarily designed for testing web applications running in a browser. It cannot directly test desktop or mobile applications without additional tools or frameworks.
  2. Handling Dynamic Elements: Selenium can struggle with handling highly dynamic web elements, such as those with frequently changing IDs or elements generated through JavaScript. Additional coding techniques like dynamic XPath or CSS selectors may be required.
  3. Handling Pop-ups and Dialogs: Selenium has limited capabilities when it comes to handling browser pop-ups, alerts, and dialogs generated by the operating system. Third-party tools like AutoIT may be needed for such scenarios.
  4. Limited Reporting: Selenium does not provide built-in reporting mechanisms for test results. Integration with third-party reporting tools like TestNG or custom reporting solutions is often necessary.
  5. Image and Captcha Testing: Selenium cannot perform image-based testing or handle captchas out of the box. Additional tools like Sikuli or third-party captcha solving services may be required.
  6. Performance Limitations: For large-scale testing scenarios with numerous parallel executions, Selenium’s performance may be limited, and additional infrastructure or cloud-based solutions may be needed.
  7. Browser Compatibility Issues: While Selenium supports multiple browsers, there can be compatibility issues or differences in behavior across different browser versions, which may require additional handling.
  8. Steep Learning Curve: Selenium has a steep learning curve, especially for beginners, as it requires programming skills and understanding of various concepts like locators, waits, and synchronization.
Categories
Automated Testing JavaScript Selenium

Selenium & JavaScript

Selenium documentation

Initialize the project

npm init -y
// https://www.npmjs.com/package/selenium-webdriver?activeTab=readme
npm i selenium-webdriver
Categories
JavaScript

JavaScript ES6

ES6, also known as ECMAScript 2015, introduced several new features and syntax improvements to JavaScript. Here are some key aspects of ES6:

Categories
Automated Testing Python Selenium

Introduction to Automation Testing

Automation testing has become a cornerstone of modern software development, enabling faster release cycles, improved accuracy, and reduced manual effort. In this chapter, we’ll dive into the fundamentals of automation testing, its benefits, and why Python Selenium Framework combined with Pytest is a powerful choice for web testing.

Categories
API Bizagi

Working with Bizagi APIs

Authentication

Go to OAuth2 Applications option under the Admin>Security and register a new application:

Categories
Bizagi Tips and Tricks

How to update an entity not related to the data model

An easy way to update an entity which is not related to the data model is to use the CEntityManager method called GetEntity. This comes in handy when the SOA layer is not accessible as this is the only way you can perform this operation.

Categories
Best Practices Bizagi

How to Keep Track of Deployments (Bizagi)

Bizagi is a very peculiar tool when it comes to deployments and if you are not well organized, things can go south pretty quickly.

In my current project, the production environment is in use 24/7 and the opportunities for a new release window are slim to none. So, imagine having issues in production just because you forgot to import the values of a new parameter entity.

Categories
Bizagi Tips and Tricks

Date, DateTime data types

Convert Date or DateTime to String data type

var sDateTimeFormatted = dDateTime.ToString("MM/dd/yyyy hh:mm");
var sDateFormatted = dDate.ToString("MM/dd/yyyy");

Or you could use String.Format

var sDateFormatted = System.String.Format("{0:d}",DateTime.Now);

Use this to convert it for XML

var dTransactionDate = DateTime.Now;
var sTransactionDate = XmlConvert.ToString(dTransactionDate, XmlDateTimeSerializationMode.Unspecified);

Dates as filters for entities

[dDateDelivered != null AND dDateDelivered >= '08/22/2019 12:00:00 AM']

Bizagi’s way

<format-date(<XPath>,"format")>
Categories
Bizagi Tips and Tricks

Escape Character in Bizagi

Use backslash (\) for string escape. See the following examples:

var sAttribute = "test";
var xCollection= Me.getXPath("entity-list(\"mEntity\", \"sAttribute = '"+ sAttribute +"' AND bActive = 1\")");
var xCollection= Me.getXPath("entity-list('mEntity','sAttribute = \"test\" ')");
Categories
Excel

Working with Excel

Conditional formatting

This can be found on the Home > Style > Conditional Formatting.

Excel Conditional Formatting

Whenever you want to want to use a formula, I found it easier to do this trick. Create the formula next to the column you want to apply the formatting. In the case below, I want to check if the value is greater than 100 (=A2>100, =A2>100 etc)