Uploading Files with Selenium Java – Test Automation Cookbook – via Applitools

Angie Jones and Applitools has recently launched a new initiative – Automation Cookbook. It has free bite-size recipes related to JS (#Cypress) & Java (#Selenium).

Here is a tip from cookbook: Uploading files with Selenium Java:

Code:

package file_upload;

import base.BaseTests;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;

public class FileUploadTests extends BaseTests {

    @BeforeEach
    public void launchApp(){
        driver.get("https://kitchen.applitools.com/ingredients/file-picker");
    }

    @Test
    public void testFileUpload() {
        String filePath = "/Users/angie/workspace/recipes/resources/images/mac-n-cheese.jpg";
        driver.findElement(By.id("photo-upload")).sendKeys(filePath);
    }
}

You can practice above code in this file picker: https://kitchen.applitools.com/ingredients/file-picker

Find more Selenium and Cypress recipes over at the Automation Cookbook: https://applitools.com/cookbook/

Thanks to Angie and Applitools for making our life easy.

Free Course – Applitools – Next Gen Visual Testing Tool (Powered by AI)

Applitools is Next generation test automation platform powered by Visual AI.
This tool can help you in Increase quality, accelerate delivery and reduce cost with the world’s most intelligent test automation platform.

This tool is now one of the most demanding test tools in the parket. UntimateQA is offering a free course on applitools. All folks who are currently working on Selenium should undergo thos course.
Link to course: https://courses.ultimateqa.com/courses/applitools (website seems still under development, but you can enroll the course)

Training Content

Part 1: Getting started

  • 00-Course overview
  • Course prerequisites
  • 03 Course syllabus
  • How to download and install Visual Studio
  • Create Applitools account and install Nuget packages
  • Why must we automate visual testing
  • Benefits of Applitools

Part 2: Baselines and Dashboard

  • What is a baseline in Applitools
  • 01-Code overview
  • 02-Baseline examples
  • 03 1st comparison
  • 04 Zooming, resizing and layers
  • 05 Toggling and Floating region

Part 3: Match Levels and Regions

  • 01 Exact match level
  • 02 Strict match level
  • 03 Content match level
  • 04 Layout match level
  • 05 Introduction to Ignore regions
  • 06 Ignore regions in code
  • 07 Ignoring multiple regions
  • 08 Floating region
  • 09 Strict region
  • 10 Content region
  • 11 Layout region

Part 4: Test Manager

  • 01 Test Manager UI
  • 02 Batches
  • 03 Full page screenshots with CSS stitch
  • 04 CSS stitching vs standard scroll
  • 04 Bugs and test steps in UI
  • 05 Test steps code
  • 07 Fluent API
  • 08 How programatic regions look
  • 09 Conclusions

Automation, Containerization/Docker Interview: 14 Questions You Should Be Prepared To Answer

This is a list of awesome Containerization/Docker Interview Questions for Testers. These are shared with in one of our groups. Please email us at i.m@fullstackqe.org, we will give the credit to the awesome person who prepared this list.

Q14. What platforms does Docker run on?

Docker runs on only Linux and Cloud platforms.

Below vendors of Linux:
• Ubuntu 12.04, 13.04 et al
• Fedora 19/20+
• RHEL 6.5+
• CentOS 6+
• Gentoo
• ArchLinux
• openSUSE 12.3+
• CRUX 3.0+

Cloud:
• Amazon EC2
• Google Compute Engine
• Microsoft Azure
• Rackspace

Note that Docker does not run on Windows or Mac.

Q11. How to create Docker container?

We can use Docker image to create Docker container by using the below command:

docker run -t -i <image name> <command name>

This command will create and start container.
You should also add, If you want to check the list of all running container with
status on a host use the below command:

docker ps -a