Code Vault

LeanFT TestNG Framework – Kicking off your Automation!

So you’ve learnt the basics of LeanFT. What next ?

The obvious answer would be to start writing a Framework. Before you start fishing in the troubled waters, let me do a reality check. In my 7 years of experience, I have been writing frameworks for more than half the time. Trust me I could have done with using code that other people have written 🙂

That is exactly what I intend to do with this blog entry! Providing a starting point for people so that we can focus on what’s really important – AUTOMATION rather than framework creation. Some of the weapons in my arsenal(read components of the framework) include:-

  1. TestNG – The undisputed king when it comes to testing frameworks
  2. Maven – The defacto build automation tool for Java
  3. LeanFT – Our favourite test automation SDK 🙂
  4. Page Object Model is used for better organisation of the code.
  5. Log4J logs all the important events.

The code for the Framework can be found on this GitHub link. It can be used as a template to write your automation code. Feel free to fork it !

FYI: This framework should be easy to understand if you’ve worked with Selenium based frameworks before. In case of any difficulty in understanding, feel free to comment.

 

Happy Automating!

Harshit Kohli

 

Advertisements

3 replies »

  1. Sorry to comment again, Can you help me connect LeanFT to JavaFX. I have UI in JavaFX & want to use LeanFT for developer friendly testing techniques. ( similar to Junit )

    • Hi Birendra,

      As per the 12.5 release of LeanFT, JavaFX applications should be supported. You can spy on them just like the Web objects in the tutorials on my blog. Just make sure you have the Java Add-in selected by right clicking the LeanFT icon in the taskbar and then selecting the add-in from the available options.

      Is there any specific problem you need help with ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s