Come for answers, stay for best practices. All we're missing is you.
A new version of the Maximo Selenium Automation Framework is now available! The framework contains updates to the recorder as well as updates and enhancements to the TestDriver.
This Selenium framework will work on Maximo versions 7.6.0.1 and above only and supports Selenium 3 and above.
Automation Framework Usage Notes:
This automation framework tool is NOT OFFICIALLY SUPPORTED. No warrantee is given or implied, and you cannot obtain help with it from IBM.
The information contained in these materials is provided for informational purposes only, and is provided AS IS without warranty of any kind, express or implied. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, these materials. Nothing contained in these materials is intended to, nor shall have the effect of, creating any warranties representations from IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software. References in these materials to IBM products, programs, or services do not imply that they will be available in all countries in which IBM operates.
The framework can be found here: https://ibm.box.com/s/kw6pniw60byor17b9re7pg9k8gkglr3o
https://ibm.box.com/s/kw6pniw60byor17b9re7pg9k8gkglr3o
Is there another way to access the information regarding Maximo Selenium Automation Framework as the link above as provided is not working. I have a customer who requires access.
Hello. I'm in the UK. Is there a way of easily changing the overall date format to UK? I see MM/dd/yyyy is used many times across the framework. If I use, say, daysFromToday to input a date that is sysdate +7, in other words 12th Nov, it will input 11th December instead (switching UK 12/11 to US 11/12).
I tried editing the daysFromToday section in DateUtil.Java but no luck.
thanks
@John Hunt
In the TpaeTestFramework.properties file. Can the machine connect to the database properly using a sql tool?
The TpaeTestFramework properties or UITest Framework properties? I have verified the properties with dba and still receiving the same error.
That error means that the properties set for the database in the properties file for the database are not correct and a database connection cannot be made. I would double check the db.url and credentials in a sql tool and if you are able to connect, ensure the properties are set correctly.
TestNG failing with this error after make variable command in script
SEVERE: ERROR: Cannot make a DB connection. Check your DB properties:
WARNING: Database connection cannot be established. dbConnection is null.
WARNING: SQL Exception executing SQL statement.
@Fuad Fayad
The framework was created to test Maximo 7.6.1.x only. If there is another application outside of Maximo you need to test, no, this cannot be used there. You can use selenium itself (https://selenium.dev) to test something outside of Maximo but it is not something we provide.
Can we use this framework to test other application other than Maximo?
@Benny Larsen
What version of the framework are you using? Below I just noticed you said V8.10 before your question (I missed that part earlier because I assumed the question was for this framework). That would not be this framework as this one is for 7.6.1.x and there is a separate community for the other one. They are two separate projects so we need to keep the questions on the correct community, and it will also help me answer as accurately as I can.
I am somehow able to use edge with V3 Framework and using Selenium Drivers 3.9.1 and Testng 6.9.10. It also does not auto update the driver. Maybe this version does not have that, which is good for me. I noticed that your driver and browser versions do not match. @Kristin Fernandes Could that be an issue?
The reason you're seeing an error is because Edge in this version of the framework was Microsoft Edge, not Edge Chromium. Selenium 3, which is the version of Selenium this version of the framework uses, does not support Edge Chromium. You'd have to upgrade to Selenium 4 and make updates to the framework on your own to support that.
Thanks.
@Kristin Fernandes
Thx for quick response, i have tested the suggestion/solution below tried with Edge, but i can't get i working, i get this in log:
Could not start a new session. Response code 500. Message: unknown error: Failed to create Microsoft Edge process.
Browser version is: 121.0.2277.128
msedgedriver is: 122.0.2365.106
The framework itself isn't getting the drivers, it's utilizing an external driver manager that is doing that. If your environment has chrome for testing installed, that's the driver it will get for you. The driver manager looks at what is installed and gets the corresponding driver.
If you are not able to get online to get that driver, if you look below there are steps to provide it directly in the framework.
Hi!
Version: v8.10
A question...as i understand it, the test framework V3 check for latest version of chromedriver and download if needed.
But according to this webpage: ChromeDriver - WebDriver for Chrome - Downloads (chromium.org) we should use chrome for testing.
Is this something that will be handled in framework in future? Until this issue is solved, i guess it will be a problem. Have anyone else noticed this? or have a solution?
Br.
Benny L
If you have to manually click the logout button, there is something that is keeping the test from finishing. If you look at the html log you should be able to see the last thing it was doing before you had to manually click logout. It may give you a clue where the problem is.
No, I have to manually click on logout in Maximo to get the test to stop and to pass. Otherwise if I cancel the run it will fail. Here is what the log shows. After the warning entry must be when I manually logout.Starting Task: Log out and close down the browserLog: Could not find any more test bin file names to run. I think we're done.Log: Total number of tests attempted = 2Log: Total number of tests passed = 2Log: Total number of tests failed = 0Log: <span style="color:#0000ff">Logging out ...</span>Log: <span style="color:#9F6000">WARNING: uitest.screenshot.capability not set in properties file. Using default true.</span>Log: <span style="color:#9F6000">WARNING: Could not log out of browser instance: 1</span>Log: <span style="color:#0000ff">Closing browser instance: 1</span>Ending Task: Log out and close down the browserTest Case: Driver passedEnd time: Thursday, Mar 21 2024 12:33 PM
If a run is not completing after a test is run, it could be because the framework is still waiting for something to happen. The last part of a test run is to log out and close down the browser - did both of those actions happen? If you look at the console, does it show that the test completed? What about if you look in the folder for the log that is being generated as the test runs?
What can cause the test to keep running after the bin file completes? I thought the setting for web driver quit in the framework properties would work but it does not.
It means jar files for any database you may need to connect to - oraclethin.jar, sqljdbc.jar or db2jcc.jar.
What does it mean in the V3 instructions "Add your database jar files"? What files is this talking about?
@Fredrik Thörnblad
You would just need to add a couple of lines to framework/AutomationBaseTest to use a Chrome for Testing browser.
At line 309, after Logger.details("Starting chrome driver"); add the following two lines:
String chromeBin = AutomationUtility.getProperty("uitest.chrome.capabilitiesLocation","C:/Program Files (x86)/Google/Chrome/Application");
options.setBinary(chromeBin);
That will get the value set in your properties file in the uitest.chrome.capabilitiesLocation property, which should point to the CfT browser. It will overwrite the default value set in the line above.
Then just ensure the uitest.chrome.webdriverLocation is pointing to the correct version of the chromedriver, either inside or outside of the project.
Once you set these properties, when you run the test it will get the browser at the specified location and use the specified chromedriver to do the testing.
Thanks!
@Kristin FernandesUnfortunately our organisation doesn't allow the framework to go online to find new files in that manner. So it will have to be a static solution with preinstalled browser/driver.
One recommendation I could make would be to use WebDriverManager to manage the browsers and drivers: https://github.com/bonigarcia/webdrivermanager
When executing a test it will find the driver that is associated with the version of the browser you are testing and download it to the machine. As long as this file is up to date you will always have the latest driver available for the browser(s).
If you do implement that, the only file that would need to be updated would be framework/AutomationBaseTest.java. It would need to reflect that the WebDriverManager would be managing the browser/driver combination and the files would not reside in the framework itself.
If this is something you're interested in and the documentation provided with WebDriverManager doesn't make it clear what would need to be updated in AutomationBaseTest, let me know and I can pull that version of the framework and document what would need to be updated.
@Kristin Fernandes, I get into trouble when Chrome decides to upgrade and the chromedriver doesn't match anymore.Where and how can I configure the framework to run with the "Chrome for testing" browser to avoid this?
@Daxu Cao
The link below should work, I just updated and verified it so you should be able to reach it.
Is the documentation link working for anyone? Do we need a box.com account to get the document?
Thanks,
Please note that the previous link to the documentation has expired. The documentation can be reached at this link:
https://ibm.box.com/s/1m0tt065rmyx91getzoyevklifkdekqc
KRISTIN Fernandes
Thanks! The file was there now. I'll inform Benny as he is a colleague of mine!
@Benny Larsen As far as I know that is the only location of the documentation. The documentation and framework used to be on a different community and it looks like when they were moved here that the two became separated from one another. The framework is also on Box so you'd need an account to be able to access both sets of files,
@Fredrik Thörnblad Can you try it again? I reverted the permissions and then gave permissions again.
KRISTIN Fernandes. I have a box account, but cannot access the documentation. Please check that the files are there and that other users have sufficent permissions to access them.
Can i access the documentation from somewhere else? i don't have any account in Box
The documentation to set up this environment can be found here: https://ibm.box.com/s/cshubx01lvuz0rob970yjj4z1qlwo763
Is there any documentation on how to setup this development environment?