Attach Screenshot in ALM Test Case step level using QuerySerge - automation

can we execute Test Cases and attach screenshot in ALM/HPQC using QuerySerge Tool.
We are trying to implement automation and want to execute the Test case and attach screenshot using the tool. I am aware that we can connect the QC and QuerySerge. But not finding any useful info regarding my requirement of running the Test Case and attaching the screenshot. Please share any useful info or any links that will help me.
Thanks in advance.

Could you please be more specific on your query? Which version of QC are you using? Old HP or the new micro focus version?
On the MicroFocus site you have the complete userguide. For instance you can use different kind of scripting (SQL query or API).
I am using REST API and able to connect, update test results and attachment of whatever type.
Please check on the microfocus if you can find what is needed for your QuerySerge (not sure on that):
https://admhelp.microfocus.com/alm/en/15.5-15.5.1/online_help/Content/APIs/API_ALM_REST_Site_Admin.htm
Hope that help and clarify your question.
Have a nice day.

Related

Automatic test report generation in Datadog

Is it possible to generate auto API test report using Datadog? :)
I'm creating a project in Java using Rest Assured and Hamcrest. I have the project on gitlab and I would like the tests to be automatically run. Based on them, I would like to receive a report :).
At first I through I could use a allure but my supervisor asked me if I could do it in Datadog.
I tried to find background material on this subject, but failed :(
I will be grateful for every link with supporting materials :)
What do you use for build tool maven or gradle?
I think this should work for you:
https://docs.datadoghq.com/continuous_integration/tests/java

Automate Export of Data from Rally

Has anyone done automation of extract/exporting data from Rally. Right now I log into rally and export data manually. I want to be able to automate it.
Can you please help me by pointing out to the right links or maybe provide me with some sample code.
I want to learn so more the info the better.
Regards,
Subro
This repo contains code that will export attachments... perhaps it could be used as a starting/learning point:
https://github.com/RallyTools/Rally-Export-Attachments

BigQuery connecting from GSheet without enabling API every time

I have some scripts running from GSheet getting data from BigQuery. However, in order to make the files run, I need to manually enable the API every time for a given sheet.
So the question is: How to enable API within the code, so that if I share the GSheet or make a copy I don't have to go to the script editor and enable the API from there?
Thanks
I am a huge fan of this particular use of the Google ecosystem, so I'm happy to help get others up and running using GSheets with BigQuery! Hopefully it is working well for you!
When sharing the sheet with others, there is no need to alter anything in the script editor at all. The scripts should run and query BigQuery without issue; this has been my experience at least. The obvious caveat to this is that the users you share it with must have access to the Google Developer Project that the BigQuery instance is associated with.
However, when copying the sheet, I do not believe it is possible to have it replicate the connection. This is because when the file is copied, it becomes associated with a new Google Developer Project. Thus, you have to go into the script editor, then go to Resources > Developers Console Project and change the project listed to the one in which you have BigQuery enabled.
Hopefully this helps! Sorry I don't have better news for you!

Running the exploration result file of the TestSuite machine(Spec Explorer) in a Console Application

I'm having a problem while trying to follow a example of Spec Explorer, while using Visual Studio 2012.
I've been following this link, but I get stuck on the running the Spec Explorer file with a Console Application.
My problem starts at the next sentence:
"Running this part of the program on the exploration result file of the TestSuite machine in the SMB2 project results in output as below:"
I don't know how to do this, but they don't elaborate on it, does anyone of you know how I should do this?
I assume you are using Visual Studio (VS)2012.
Then I guess you tried already the "RequirementReport" example of Spec Explorer.
This should give you the same possibilities and a running example (using VS2010).
I assume you tried this example, but it was not working (due to VS2012).
Then you tried it with this article in your link.
You're interested in just a report of an exploration result. You're not playing with the idea any more of creating your own full blown path coverage strategy. Right?
You created a new console-application-C#-project and copied the program code from the end of the article into it.
You are able to compile. But you forgot to replace "args[0]" with the full qualified path to an .seexpl-file! Right?
A lot of guessing, but I need 4 more points until I can ask questions in a comment ...

How does one configure PHPUnit to log to the test database?

I am trying to work out how to configure PHPUnit to use the "test database" that is described on this wiki page: http://www.phpunit.de/wiki/TestDatabase However I can't find any documentation on how to enable and configure it.
Has Anyone got any ideas?
Thanks
Chapter 9 has a quick example of initializing your test database. If you meant how do you go about configuring MySQL (or any other database, for that matter), just let us know and we can get that info for you too.
Seems I can answer this one my self!
After doing a google for "phpunit depreciated" I came across the following changelog:
http://www.phpunit.de/changeset/5167
Thought I'd leave the question up in case anyone else got confused.