Contact Us

WebSenor Pvt Ltd Bengaluru

Site No. 26 Laskar, Hosur Rd, Bengaluru, Karnataka 560029
Phone +91-8854834560

WebSenor Pvt Ltd Udaipur

3rd Floor , S.M. Lodha Complex,
Udaipur (Rajasthan)India

Phone: +91-9950834560
Phone+91-9782177208 
Emailinfo@websenor.com

USA – WebSenor LLC

25-03 83rd St, East Elmhurst, NY 11370, United States
Phone: +1-480-561-4112
Emailinfo@websenor.com

UK – WebSenor Ltd

184 Caroline St, Birmingham B3 1UE, UK
Phone+44 20 3286 4560
Emailinfo@websenor.com

WestoWeb Inc

Block 10, Salmiya, Kuwait
Phone+965-97487871
Emailinfo@websenor.com

Skype: WebSenor Infotech

Career

For Career / HR related queries : +91 85297 34560
For Recruitment related queries : +91 83068 92560

WebSenor is a high end tech company headquartered in AZ, USA and its development centers are in Udaipur & Bangalore, India. We provide web development, software development, mobile application development & digital marketing services to the global market.
With 10+ years of experience, 3000+ projects of portfolio and 110+ professionals, WebSenor is one of the leading name in IT market.

Connect with us

Automation framework with Reflection API

Automation framework with Reflection API

Maintaining automation frameworks have always been aiding in maintaining quality software releases. We are quite aware of some of the types of automation frameworks such as Modular Testing Framework and Data-driven Framework. Irrespective of design pattern of our automation framework, maintenance of code has always been a challenge.

In any automation framework, several calls to a data member are made through object of any class, be it any method or any other data member like a variable. For this approach to work flawlessly we must know the object we are using to access a class data members. There may be some scenarios in which we just have to implement a certain functionality without knowing the complete information like in which class the functionality is implemented or which method is implementing the functioanlity.

We have a concept known as Reflection in java so as to provide us with the benefits of object identification while we are writing our scripts. We need not to be aware of all the methods and classes in our framework. We can create instances of an unknown class and call methods on them.

We may enjoy few of the advantages in our automation scripts if we incorporate reflection in our automation framework.

Knowing a methods name and its parameter type, we can invoke a method through reflection.
Through reflection we can access the private variables and methods of a class with the help of its class object and invoke the method by using the object.

Leave a Reply

Your email address will not be published. Required fields are marked *