RF Refactoring
Outline
rfrefactoring package
-
Install robotframework,
run the following command:
pip install robotframework==3.2.2
move
robot304
in robotAPI into your site-package. -
Use following command to run all tests.
All tests should be passed.
python python_package/test/testRunner.py
python python_package/new_test/testRunner.py
Eclipse plugin
-
Download the Eclipse from here.
-
Install the
Eclipse Plug-in Development Environment(PDE)
feature in Eclipse. -
Import the
refactor_tool
project into Eclipse -
Install the
rfrefactoring
packageRun the following command:
pip install JoeLiu-RF_Refactoring
-
Put the
jython-standalone-2.7.2b3.jar
intorfrefactoring
folder -
Run the plugin
Right click project ->
Run As
->Eclipse Application
-
Set the
python site-package
location for the plugin7.1 Go to
Windows
->Preferences
->Robot Framework Refactoring
7.2 Set the
site-packages
pathYou should replace it to your path!!!
-
Restart the plugin and it should be able to refactoring.
-
Run the
unit tests
for plugin9.1 Open the
test/RefactorHelperTest.java
9.2 Replace the
pythonSite
variable with your site-package path9.3 Open the
test/NewRefactorHelperTest.java
9.4 Replace the
pythonSite
variable with your site-package path9.5 Run
RefactorHelperTest
andNewRefactorHelperTest
with junitAll tests should be passed.