Using Automation Utilities

STEP 1 :  Download the Jar file  Click Here

STEP 2 :  Add the Jar file your project class path

STEP 3 :  Add the below dependencies in project POM.XML

<dependency>
    <groupId>commons-io</groupId>
    <artifactId>commons-io</artifactId>
    <version>2.7</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi -->
<dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi</artifactId>
    <version>4.1.2</version>
</dependency>
  
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
<dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi-ooxml</artifactId>
    <version>4.1.2</version>
</dependency> 
<!-- https://mvnrepository.com/artifact/javax.mail/mail -->
<dependency>
    <groupId>javax.mail</groupId>
    <artifactId>mail</artifactId>
    <version>1.4.7</version>
</dependency>

<!-- https://mvnrepository.com/artifact/commons-net/commons-net-[INFO]: Used for ftpUtils -->
<dependency>
    <groupId>commons-net</groupId>
    <artifactId>commons-net</artifactId>
    <version>3.6</version>
</dependency>


Comments

  1. Is this works in remote machines like ADO and Sauce lab's since we are setting up environment variable locally.

    ReplyDelete
  2. I have not checked it, but I think it should work, we need to think how do we move this jar file to sauce labs (like other jars)..Let me know if you get into any issues, we can work together to fix it.

    Best Regards,
    .Click() Automation Labs

    ReplyDelete
  3. Will this work on cloud machines?

    ReplyDelete
  4. "Store cannot be resolved to a type"
    "The type javax.mail.Store cannot be resolved. It is indirectly referenced from required .class files
    The method connectToGmail(Properties) from the type EmailUtils refers to the missing type Store"

    This is showing this many errors can u plz help me to resolve this errors.
    here is some store problem i cant import store.

    ReplyDelete
    Replies
    1. Can you please check if you have added same jar files, multiple times in your claspath?

      Delete
    2. same problem i too facing sir. Can you help me to sort out this problem?

      Delete
    3. seems , there are libraries that are added to classpath more than once.

      Delete
  5. javax.mail.MessagingException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate);
    How can I resolve this error

    ReplyDelete
    Replies
    1. javax.mail.MessagingException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate);
      nested exception is:
      javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

      I am getting above error. can you help

      Delete
    2. javax.mail.MessagingException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate);
      nested exception is:
      javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

      I am getting above error. can you help please sir

      Delete
  6. I always get null on emailtext variable

    ReplyDelete
    Replies
    1. I get like this: Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.split(String)" because the return value of "java.util.List.get(int)" is null
      at Helper.testutilities.main(testutilities.java:25)

      Delete
    2. Hi, did you get a solution for this as I too am getting the same error?

      Delete
    3. javax.mail.MessagingException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate);
      nested exception is:
      javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

      How to resolve this please help me out

      Delete
  7. package com.testing.framework does not exist
    [ERROR] cannot find symbol
    [ERROR] symbol: class EmailUtils
    [ERROR] location: class configuration.testutilities
    [ERROR] cannot find symbol
    [ERROR] symbol: class EmailUtils
    [ERROR] location: class configuration.testutilities
    [ERROR] -> [Help 1]

    ReplyDelete
    Replies
    1. javax.mail.MessagingException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate);
      nested exception is:
      javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

      I am getting above error. can you help

      Delete
  8. javax.mail.MessagingException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate);

    getting error like this can you help me

    ReplyDelete

Post a Comment