PSS Automation

The desire to create this blog to share my knowledge to others.

Wednesday, July 27, 2016

Getting the name of the current executing method

String methodName = new Object(){}.getClass().getEnclosingMethod().getName();
(OR)
String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();
 

 
 
 
 
 

Posted by Syam.. at 10:36 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

PSS Search Engine

Selenium Concepts

  • ►  2025 (2)
    • ►  Apr (1)
    • ►  Mar (1)
  • ►  2022 (9)
    • ►  Aug (2)
    • ►  Jul (1)
    • ►  Mar (4)
    • ►  Feb (1)
    • ►  Jan (1)
  • ►  2021 (5)
    • ►  Aug (2)
    • ►  Feb (2)
    • ►  Jan (1)
  • ►  2017 (1)
    • ►  Mar (1)
  • ▼  2016 (24)
    • ►  Dec (1)
    • ►  Nov (1)
    • ►  Sep (1)
    • ►  Aug (3)
    • ▼  Jul (3)
      • Getting the name of the current executing method
      • Currency and Phone Number Format Check?
      • Resizing a web element using movebyoffset
    • ►  Jun (1)
    • ►  May (3)
    • ►  Apr (2)
    • ►  Mar (3)
    • ►  Feb (1)
    • ►  Jan (5)
  • ►  2015 (12)
    • ►  Dec (2)
    • ►  Oct (1)
    • ►  Sep (2)
    • ►  Aug (4)
    • ►  May (1)
    • ►  Feb (1)
    • ►  Jan (1)
  • ►  2014 (11)
    • ►  Dec (2)
    • ►  Oct (1)
    • ►  Sep (1)
    • ►  Aug (1)
    • ►  Apr (3)
    • ►  Mar (1)
    • ►  Feb (1)
    • ►  Jan (1)
  • ►  2013 (19)
    • ►  Dec (2)
    • ►  Aug (17)
  • ►  2011 (1)
    • ►  Dec (1)

About Me

Syam..
My Name is Syam working as a QA Lead.
View my complete profile

Lables

  • Selenium WebDriver
Watermark theme. Powered by Blogger.