Dialogflow with Botium Testing : how to generate report file - automated-tests

My botium is running and can already test my dialogflow bot, but it seems i have problem in getting the report to output files like CSV or mochawesome html. Either way the result was shown only in the terminal command line
I write in CLI like this :
botium-cli run csv
OR
botium-cli run mochawesome
I am using dialogflow for LINE BOT and following this tutorial. But it does not say much about generating the test output.
How do I solve this problem?

Botium CLI provides help on the available reporters and options by adding the --help flag (as usual):
botium-cli run --help
will show command line help of the available output formats and other options.

Related

Docfx failing on init command

I am trying to get docfx to generate a doc website based off of a C# library and I can't seem to get any of the commands covered in the documentation to work.
On the quickstart page it states to use the following command to initialize a template docfx init -q however when I run this command I get the following error message:
'init' was not matched. Did you mean 'new'?
'-q' was not matched. Did you mean '-h'?
Required command was not provided.
Unrecognized command or argument 'init'
Unrecognized command or argument '-q'
Usage:
docfx [options] [command]
Options:
--version Show version information
-?, -h, --help Show help and usage information
Commands:
new <templateName> Creates a new docset.
restore <directory> Restores dependencies before build.
build <directory> Builds a docset.
serve <directory> Serves content in a docset.
The documentation (as far as I can tell) doesn't cover the options displayed by the tools output. I have checked a number of times now to make sure I am not going insane but I definitely downloaded the package from the page listed on the quickstart page.
Does anyone regularly use Docfx and can tell me how to go about generating the html for my library?
Looks like you're using 3.x, which is undocumented.
You can download 2.59.2 here

RobotFramework RIDE cannot import library

I have a file right here: Library ../../MyLib/My_Lib.py, and I try to import the python file in RIDE, but RIDE still report "FAIL : No keyword with name '****' found", and this keyword is defined in the My_Lib.py, seems RIDE cannot find the python file.
I using python 2.7.8+Robot Framework 3.1.2+windows server 2012r2. I even selected Library -> Name -> Browse in RIDE, but the error still there and this whole robot test case folder is copied from another server which is working fine
Can anyone suggest what have I missed?
Ah! I have worked this out, if anyone else meets the same issue, you can click Tools->view RIDE Log, to see what's happening there. For my case, it's because I didn't install thrift but the My_Lib.py obviously used thrift module, so the My_Lib.py compile failed with "No module named thrift.Thrift".
Is it possible the Python library was created to work with Python 3.x.x leading it to not work on your Python 2.7.8? See https://wiki.python.org/moin/Python2orPython3
Check what python version is being run on the other server where the test is running fine. You might need to update your local Python version.
Also, you could try running the Robot test outside of RIDE just in case. You may do so by navigating to the test folder where the .robot file resides and running the following command:
robot test_file_name.robot
See if you get the same error that way. Please report back after doing the mentioned checks and we can continue debugging, my reputation doesn't let me comment on your question so I will just update the answer as we go along.

How can I preview .Rd documentation files in R?

I would like to be able to open up an .Rd documentation file and preview it in R.
For example, I can create a data documentation file using promptData:
df <- data.frame(var1=1:5,var2=6:10)
promptData(df,filename = "df_doc.Rd")
which will produce a documentation file "df_doc.Rd" in the working directory.
In order to preview this file, I can open it up in the RStudio editor and then hit "Preview", which will open up df_doc properly formatted in the Help window. However, I'd like to be able to do that with code rather than having to open up the file and hit the Preview button in the RStudio GUI. Something like a preview("df_doc.Rd") function.
I'm aware that there are ways to 'install' the documentation files so R knows where to find them. But I'm writing some code that will generate these files automatically and preview them (hopefully without having to load in the dev tools that install the documentation files), so I'm specifically hoping to be able to preview these directly from file. Is that possible?
Man, the documentation for this one was pretty well hidden! To be fair, "Rd" isn't exactly Googleable, nor is documentation about documentation. But I managed to scrounge it up.
What I've been looking for is the
previewRd('df_doc.Rd')
command in the rstudioapi library. Unfortunately, this only works in RStudio, so if I want it to be generally usable I'll need to write HTML directly instead of Rd and open that in a browser.
According to 'Writing R Extensions', run:
R CMD Rdconv -t html filename.Rd > filename.html
in the command line. See also:
R CMD Rd2pdf --help
In R: system("R CMD Rdconv -t html filename.Rd > filename.html | chromium-browser")

Allure report with robotframework is showing html file without the test run results

I am running tests with robot framework and i want to get allure report. I have been able to successfully install it and i can see that the .xml files are getting created with the test run results. But when i do "Allure serve " it displays a report without any test information in it.
Can someone please help me? I am using AllureReportLibrary in the robotframework
share one lession.
robot --listener allure_robotframework CustomerService.robot
Default output directory is output/allure.
allure generate output --clean
where I use this command to generate report, no testcase in report.
allure generate output/allure --clean
when I change to this dir, it works. So I guess the innermost directory is necessary.

Running a python .py file on Jetbrain Pycharm

I write my .py files using Pycharm JetBrains editors. When I run my codes, the output is shown in a console entitled "Run", without any prompt. Therefore, I dont have access to the variables of my code output. How can I force the pycharm to show the output of my codes in ipython console?
You can edit the Run Configuration and check the box "Show command line afterwards". This will run your script, but leave you in an interactive prompt. Everything from your script will have been imported and available.
As a note, if you install the IPython package (Preferences -> Project -> Project Interpreter, click + to add packages) then you can get a nicer console interpreter.
Finally, a different way to accomplish what you are looking for: run under Debug rather than Run. You can set a breakpoint and then use the debugger's Console right at the line you might be interested in.

Resources