Skip to content

huaiyuangu/debug-robotframework-IntelliJ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

debug-RobotFramework-In-IntelliJ

how to debug Robotframework test cases with Jython jar file in IDEA Intellij IDE

Create Configuration in IntelliJ

Path to JAR: C:\jython2.7.0\jython.jar (jython jar file in jython installation directory) VM options : -Dlog4j.configuration=log4j.properties (not necessary) Program arguments : debug_robot.py (entry file to debug specific test case filtered by tag name) Working directory : ...\projectPath (current project path) 

Copy debug_robot.py file to your project

add lib files and build output directory in python PATH variable

# set classpath for jar file libraries JAVA_LIB = os.path.join(root_path, 'lib') cp = '' for lib in os.listdir(JAVA_LIB): if lib.endswith(".jar"): s = os.path.join(JAVA_LIB, lib) cp += s + ':' sys.path.append(s) # build java source code to output sys.path.append(os.path.join(root_path, 'output')) 

Set breakpoints on source java code

Run/Debug configuration in IntelliJ

check java variables & stacks when pausing on breakpoint

About

debug java libraries for Robot framework in Intellij

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages