We will create a run configuration for this specific robot and workspace. $ rcc cloud new -r new-project-robot -w ad56bb1a-ea3b-492c-926.Ĭreated new robot named 'new-project-robot' with identity 3531. Find workspace ID in Cloud workspace settings. $ rcc configure credentials 849:b40ec2941659cf968bda88ae1ed1.Īdding credentials: On your plain command line, you can run the following commands (this is an option if you don't want to add a P圜harm configuration): # Create credentials at We will create a configuration to upload our robot to Control Room and to run in a cloud container. You may open the log.html file in an external browser by right-clicking and selecting Open In Browser -> Default. The test results are available in the testrun folder. Note that the Interpreter Path is left empty.Īfter creating the run configuration, you can run the robot project from the Run menu. Use type Shell Script and configure rcc task testrun command as follows. Select Run -> Edit Configurations and add a new configuration with the + button. To be able to run the project with RCC, we will create a P圜harm run configuration. We have Python and other dependencies available as defined by the conda.yaml file. Now, complete the project creation and check that the terminal inside P圜harm points to the right environment. The Python path will have this format (on macOS): /Users//.robocorp/live/78c012d7204dd721e32630c3d0ed065b83e63788e40bf008adf503044ea9b80a409b56/bin/pythonĬonda path is as follows on macOS: /Users//.robocorp/miniconda3/bin/conda Additionally, we select conda from the Robocorp configuration directory. We are using bin/Python from that environment path. We need to tell P圜harm to use the RCC environment that we created earlier on the command line. next to Existing Interpreter to define the project's environment. In the next dialog, set a name for the project and select. See details at Updating project dependencies. Note: If the conda.yaml file is updated, the environment needs to be recreated. Copy the path in your own terminal (it will not be the same as the example above). On the last line, we have the newly created virtual environment, which will be used later by P圜harm. Make sure you have the initial dependencies in place and then create a virtual environment based on the configuration file: $ rcc environment new conda.yaml The conda.yaml file describes the dependencies for the project. We now have the following files available: $ ls Create a robot project from scratch $ mkdir new-project We need to manually create such an environment so that P圜harm can be later configured to use it. Instead, the dependencies are isolated in lightweight virtual environments. Pycharm open terminal install#The Robocorp automation stack doesn't require you to install Python, Robot Framework, or other dependencies locally on your machine. If the command doesn't work, make sure it is found in PATH. Verify that you can run rcc version on a newly opened terminal window. Pycharm open terminal code#RCC is our command-line-based power tool used internally by our other tools, such as Robocorp Code for VS Code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |