Robot framework- Pabot Using Jython - robotframework

As part of the pabot documentation
https://github.com/mkorpela/pabot
--command [ACTUAL COMMANDS TO START ROBOT EXECUTOR] --end-command
RF script for situations where pybot is not used directly
is given.Have anyone tried to use Pabot with Jybot command
Exmple:
pabot --command Jython --end-command TestCasesDirectory
It is failing with assertion Error.

The page has the example:
pabot --command java -jar robotframework.jar --end-command tests
That uses jython (embedded in the robotframework.jar) or you could also do
pabot --command jybot --end-command tests
You can't directly run your tests with Jython command in any case - so it will not work through pabot either. The actual command to run RF tests with jython is jybot.

Related

Unable to execute spark job from Robot Framework by using SSH Library

I am trying to execute a spark job from robot framework.
Execute Command su hdfs -c 'spark-submit --driver-java-options "-Xss4m" --master yarn --queue..etc /home/automation/actual'
Its not getting executed from robot framework. Please help me if anyone knows this.

Robot Framework - Pabot ordering mechanism not working in Azure MS Hosted Agents

I am trying to run Pabot sequential ordering in Robot Framework hosted on Azure MS hosted Agent. Since its a MS Hosted Agent I have to install all the required libraries at runtime with the yaml. My issue is I am trying to run an ordered pabot file with robot framework, it works in local perfectly but not in the MS Hosted Agent.
This is the .pabotsuitenames file that I am working on. I need the Regression.AggregateReportTestData to run first and then using the output variables of theis Test case, run the next all the Test cases in parallel which works fine on local but not on the MS Hosted Agent build pipeline.
datasources:1cb220d38bfbc55b3c76e244044a00d2097d8710
commandlineoptions:22e839e76c606ed61a87154433701a21d8057efd
suitesfrom:no-suites-from-option
file:c012b5640c297cd3f0915fe213dae885448d7bef
--suite Regression.AggregateReportTestData
#WAIT
--suite Regression.CourseCreate
--suite Regression.TopicCreate
--suite Regression.LibrariesE2E
The pabot command line is below:
pabot --pabotlib --ordering .pabotsuitenames --include RegressionTest --variable ENV:${{parameters.envToRunTest}} --outputdir ./Results/Report/ --timestampoutputs --log log.html --report report.html --loglevel INFO -x outputxunit.xml --name "Robot Execution" $path

`dotMemoryUnit` with `dotnet test`

I typically run my unit tests using dotnet test. The framework I'm using is xunit. As such, I'm not sure how to run dotMemory unit tests with the CLI.
The documentation recommends:
dotMemoryUnit.exe
-targetExecutable="C:\NUnit 2.6.4\bin\nunit-console.exe"
-returnTargetExitCode --"E:\MyProject\bin\Release\MainTests.dll"
What should I put in -targetExecutable? It expects a path, so entering dotnet test doesn't work.
I tried to run tests using latest dotMemory Unit 3.1, it works
dotMemoryUnit.exe "c:\Program Files\dotnet\dotnet.exe" -- test "path\to\the\solution.sln"
For your version it would be
dotMemoryUnit.exe -targetExecutable="c:\Program Files\dotnet\dotnet.exe"
-returnTargetExitCode -- test "E:\MyProject\bin\Release\MainTests.dll"

Run jython with a jar dependency

I installed jython 2.5.3 and I am trying to execute my script, which has a dependency with jsch.jar, using the command line. Then I tried something like this:
c:\myScriptLocation\> c:\jython2.5.3\jython.bat script.py
But it returns:
ImportError: No module named jcraft
If I execute the jython script with Eclipse, it works, because I can add the dependency in the System PYTHONPATH of the Jython Interpreter. But I cannot use eclipse to execute the script, I have to do it with the command line.
I tried to copy the jar file to the lib path of the jre jython is using, but doesn't work.
Any idea of the command I have to use?
You can just do ...
c:\myScriptLocation\> c:\jython2.5.3\jython.bat -Dpython.path=\myJarLocation\jsch.jar script.py

configring git bash on windows to run phpunit

I'm using a Win7x64 PC in order to write my php code. I'm still on the learning phase of using PHPUnit. I'm using phpunit from bash command line. I'll like to have the colors in git bash when I run my tests.
I got bash when I installed git for windows. On git commands, I get the coloring.
ps: using phpunit --colors doesn't change anything

Resources