Posts

Showing posts with the label testing

Getting error : org.openqa.selenium.WebDriverException: unknown error: keys should be a string

Getting error : org.openqa.selenium.WebDriverException: unknown error: keys should be a string I am getting the error to access the data from the properties file in my selenium UI : How can this be solved ? org.openqa.selenium.WebDriverException: unknown error: keys should be a string. I have the following framework. I made it for my self for ease, looks like complicating myself. If any good ideas to better it, please suggest. Appreciate all suggestions. Framework contains the following : 1. config properties file 2. utilities class 3. Page elements definition class file 4. reusable functions class file 5. test classes config.properties file has the following content : config.properties url=http://some.com Email=someuser Password=somepassword Utilities class ( BrowserCalls ) the following code : BrowserCalls import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import ja...

How to tackle configuration file in Jenkins?

How to tackle configuration file in Jenkins? There are some configurations in my code (to connect DB). I wrote them in .env . Users need to create their own .env file to run the application. This is the copy code in Dockerfile: COPY .env server COPY .env test .env .env COPY .env server COPY .env test When I use Jenkins to build a pipline, I have to commit this file, but I should not do that(aws information included there). What is the best practice to save configuration file? Thanks Why not let jenkins handle the credentials for you? Are you talking about credentials for your pipeline or for the application you are deploying? – user3483203 Jun 30 at 19:30 @user3483203 thank you very much! I will check it out. – MongoliaOba Jul 1 at 3:17 ...