Question
Atos
IN
Last activity: 16 Oct 2018 12:03 EDT
Need help in automating my tests for Pega application using Web Driver or RC
Hello,
While executing the test case, Test script is not identifying the X-path or ID or any web element in the application.
Could you please help?
***Updated by Moderator: Marissa to update categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Virtusa IT Consulting
AE
Do you see any error in logs?
Atos
IN
Yes it says, could not identify the web element.
Pegasystems Inc.
US
Hi Kirti,
I hope you are using the selenium webdriver for your test case automation. I have a few queries for you as follows:
- Which pega version you are using?
- Which browser you are using?
- Did you the record the test case using the webdriver, if so is it recorded from eclipse or browser supported driver?
- The above issue is happening for all the web elements or any specific webelement?
- I hope you had added the wait conditions properly to complete the loading of page if any delay. Also share your sample test case which is created for our further understanding.
Note: Basically if you record the test case using the web driver then it should work at your end. If you had not tried to record a sample test case kindly try it and share the result, for example : login functionality.
Regards
Mahesh
Pegasystems Inc.
US
Hi Kriti,
Generally Pega UI components has an additional property data-test-id which will be unique ID that needs to be generated for the UI element, by using this unique id you can able to read the element in your test case. For more information about the Test ID refer this page. Hope this will help you in resolving your issue.
Additional information here.
Regards
Mahesh
MUFG Pension & Market Services
IN
Hi Mahesh,
Unfortunately Selenium does not provide the facility to use data-test-id, which is unique id provided by Pega. This is the biggest limitation with Selenium for Pega application. If we can find a way to use data-test-id then it would be very much helpful to automate Pega applications.
Kind Regards,
Fayaz Chaudhari
https://www.linkedin.com/in/fayazchaudhari/
Virtusa IT Consulting
AE
Can you post the logs here? or the snippet of the error message?
EPAM Systems, Inc.
ES
Hi Kirti,
Just to inform you,
Going forward from Pega 7.2.2,
Beginning with Pega 7.2.2, you can use PegaUnit testing to create test cases to validate the quality of your Pega 7 application by comparing the expected test output with results that are returned by running rules. PegaUnit testing is supported for the following rule types:
- Activities
- Data pages
- Data transforms
- Decision tables
- Decision trees
- Strategies
In addition, if you have the AutomatedTesting privilege, you can use Automated Unit Testing (AUT) and switch between PegaUnit testing and AUT.
Kindly refer below link for details:-
https://collaborate.pega.com/discussion/pega-71x-pe-install-mac
X & G Inc
US
You might need take care of XPath lookup among the frames with Selenium. See details http://www.seleniumeasy.com/selenium-tutorials/how-to-work-with-iframes-in-selenium-webdriver