Refactoring integration in Intellij
Refactoring a keyword/variable is not working in robot framework.
Created a keyword with Login. Testcase is written using keyword Login. Later changed the keyword name to LoginAsAdministrator. But the change is not reflected in testcases where the keyword has been already used. Means refactoring is not working in Roboframework. This makes the framework maintainance difficult.
Alternate solution is Replace all. But this solution wont work for automation frameworks.
Refactoring is not working for variables and file names as well.
Refer the below stackoverflow query as well. https://stackoverflow.com/questions/54923015/how-to-refactor-codes-in-robot-framework
Refactoring is currently only supported in the VSCode. The Intellij integration still needs to catch up (so, the language server supports it but the client doesn't).
p.s.: pull requests/patches welcome ;)
Hello Thank you for the update.
Refactoring of keyword is working in VSCode. But I am unable to perform refactoring of filenames. Updated the Login.robot file to LoginUser.robot file. But the same is not getting updated in .robot files where it has been used. Path remains same (Resource ../../Login.robot)
That's really unsupported (right now it supports only renaming variables and keywords).
I've created https://github.com/robocorp/robotframework-lsp/issues/692 to track this.
currently refactor file still doesn't work in vscode