Is there a way to add defect in Test comments by Test Rail API - automated-tests

I'm working on test rail integration with my cucumber tests.
I managed to pass result of the test to "Comments" section of test in Test Rail.
However I have problem with adding defect to "Comments: Defect" field. Is this possible with Test Rail API?
Thank you

Related

How to stop Jira/Xray from updating my test case name/summary?

I am using POST /api/v2/import/execution/robot to import my Robot Framework test results to Jira/Xray. I use robot tags to identify which Xray test executions I want to update. Problem is, that in robot file I want the test case name to be "Example" and in Xray I want the name to be "Real deal". When I POST my test executions to Jira, it automatically updates the tickets summary as follows:
XXX updated the Summary 30 minutes ago
Real deal -> Example.
So the ticket name changed, and I don't want that.
How can I stop this from happening?
Read through the documentation and tried to google, but can't find anything related.
From my understanding, and to clarify, you're using Xray on Jira Cloud.
Currently, the behaviour is non-configurable. For the time being, the only solution would be to change "Example" to "Real deal"; I would avoid having different names in RF side and on Jira side.
Finally, my other recommendation would be to reach out to Xray support team asking for an improvement, so that the team can analyze your need.

How show the run date on the Test Runs Summary widget on JIRA Dashboard

I have added the Test Runs Summary xray widget to my JIRA Dashboard.
The results are shown - but there is no timestamp at all, so you have no idea when the run was executed. Is there any way to show the run time?
The "Test Runs Summary gadget" aggregates test runs, showing thereforece the counts only; it's not a list of Test Runs. Currently, this gadget doesn't provide drill-down/expand capabilities. If this is something that may be useful to you, please reach out Xray support team asking for this improvement. I'm not sure exactly how that would be implemented, but that is a question that the PO has to analyze.
Meanwhile, uou should use the Test Run List gadget instead, and include the "Started on" and "Finished on" field on the gadget configuration.

Cybersource Secure Acceptance test cards

Does anyone know if there are test card numbers that simulate failed transactions for Cybersource secure acceptance? I have searched the docs and can only find successful payment card numbers
Credit card numbers do not trigger errors. Instead it is usually the amount of the transaction. You can see a list of errors and their triggers here: https://developer.cybersource.com/api/developer-guides/dita-cybs-so-test-data/so_overview.html
Note that errors are grouped by the payment processor you are setup for. The default for a test account is Chase Paymentech.
You can use "4111111111111112" to trigger an invalid card number response. Source: testing guide

Google Tag Manager and AB Testing for mobile

I defined a new ab testing experiment using google tag manager for my android
But seems whatever I am trying to do I always get the default value.
I couldn't find to much documentation about google ab-testing for mobile.
Does anyone know how to define it properly?
A/B tests will always show you the same test on the same device. This is needed to produce accurate test results. Otherwise, you can't be certain the user was swayed by the variant or that the user was simply ready to respond.

How to test online payment application?

We have ASP.NET application where you can purchase something. Of course, at the end of process there's a screen where you have to populate credit card number and other standard stuff. But, we don't have any real credit card number and I can't pass that step to test it further.
How can I test it?
You can use http://www.codeproject.com/Tips/515367/Validate-credit-card-number-with-Mod-10-algorithm tutorial to understand better the credit card number theory and can apply the same in your application for testing.. Or, you can use any kind of payment gateways like PayPal to test.

Resources