Title: SOAIS BLOG - 'How to work with unidentifiable objects in Java Application'
1SOAIS is a leading enterprise IT solutions
provider with a passion for customer
satisfaction, technology innovation, and profound
industry and business process expertise. It
offers a full spectrum of technology solutions in
the arena of Oracle Cloud (SAAS PAAS),
PeopleSoft, Worksoft, and niche technology areas
such as AI/ML for enterprises. Founded in 2006,
SOAIS mission has always to bring cost reduction
and innovation that produce a tangible impact on
our customers business. Its continuous
commitment towards excellence has resulted in an
ever-increasing list of more than 100 satisfied
global clients across several verticals. SOAIS
has a global presence in Chicago, Bangalore,
Kolkata and Dallas. The company has a dedicated
Center of Excellence, a flexible global delivery
model and a strong track record of long-term
strategic partnerships with customers. SOAIS is a
Gold partner of Oracle and also has a strategic
alliance with Worksoft.
Enterprise IT Solutions
Putting Customer First
SOAISs Vision To become our customers trusted
partner of choice by helping them create business
value by leveraging technology and innovation.
2SOAIS BLOG How to work with unidentifiable
objects in Java Application
http//www.soais.com/work-unidentifiable-objects-j
ava-application/
- Dealing with the complex objects of any kind of
application is a major challenge for automation.
Worksoft Certify has the capability to overcome
such challenges irrespective of the type of
platform making our life easy as automation
developer. Many of us are already aware of
handling complex objects for Web and SAP
applications. Let us now see how to handle
complex Java objects. - In Certify a Window/Object of any application is
recognized by its attribute/tag elements.
Similarly, for identifying objects in Java
applications through Certify we need to use
various Tag elements in the object attributes
such as Caption, Certify Class, Logical Name, By
etc. - In case of complex Java applications, some of the
objects may not be learned or identified using
Certify. Unlike Extensibility Framework tool for
Web applications (refer to Demystifying Certify
eXtensibility Framework), we do not have any
alternate tool which can identify such complex
Java objects. But, we still do have an
alternative way of resolving such object
identification issue for complex java
applications by using the By tag.
3Scenario Consider the sample application
provided by Worksoft with its installation
package. In this application, there is a label
called Account Name and besides it there is a
text box where we need to enter a value for the
Account Name.
Issue The field to enter the value of Account
Name cannot be identified through Certify.
4Resolution The non-identifiable object can be
identified with reference to some identifiable
object in the application. This can be achieved
by using a By tag in the attribute
string. Basically, we can handle this issue in a
single attribute string. First, we need to
identify the identifiable object and then move
towards the non-identifiable field using By
Tag. In general, the non-identifiable object
can be of any type such as Textbox, Checkbox,
Button etc. So, based on the type of object we
need to use the corresponding Certify Class and
Class. The attribute of the non-identifiable Java
object is created as below ltobject
platformJava findbytestgtltlogicalnamegtAccount
Namelt/logicalnamegtltcertifyclassgtjavaEditlt/certif
yclassgtltclassgtjavax.swing.JTextFieldlt/classgtltbygtlto
bjectgtltcaption matchequalsgtAccount
Namelt/captiongtlt/objectgtltrightgt1lt/rightgtlt/bygtlt/obj
ectgt In general, the moves within a by element
is an integer. It has these values
ltrightgtnlt/rightgt, ltleftgtnlt/leftgt, ltdowngtnlt/downgt,
and ltupgtnlt/upgt
5The moves are basically the directions that you
need to move to locate the object that is not
identifiable from the reference to the object
that can be identified. Below is the successful
execution using the above attribute string for
the non-identifiable Java object
6Note In this sample application the textbox
Account Name is identifiable using Certify learn,
but to illustrate the use of By tag the above
scenario was used considering the similar
scenario in other real-time applications that you
may encounter. Regardless of the java application
the above solution holds good for any similar
issues that you may encounter in your application.
7Contact SOAIS-
- SOAIS CorporateUnit No-09, Fifth Floor,
Navigator Building,ITPB, Whitefield Road,
Bangalore 560066.Call 91-80-40071234Business
Email info_at_soais.comWebsite www.soais.com
SOAIS ChicagoSuite 101, 1979,N Mill St.
Naperville, IL-60563,United States.Call
1-800-262-2427Business Email info_at_soais.comWebs
ite www.soais.com
SOAIS Kolkata2H, KBR Complex,4 Ho Chi Minh
Sarani, Kolkata 700071.Call 91-33-4004
0566Business Email info_at_soais.comWebsite
www.soais.com
SOAIS DallasSuite 300, 15150,Preston Road,
Dallas,TX 75248,United States.Call
1-800-262-2427Business Email info_at_soais.comWebs
ite www.soais.com