Quantcast
Channel: Gurock Software Support Forum
Viewing all 829 articles
Browse latest View live

Trying to trigger automation from hosted account, 'same origin' issue

$
0
0

I've been working with the sample code provided here:

https://github.com/gurock/testrail-cust … xample/4.x

...to try and get TestRail to trigger my automation after creating a Run.  I am using a hosted TestRail account, however, so I can't perform the ajax call to the external URL where my webserver is hosting the PHP trigger code ('same origin' issue to prevent xsite scripting).

Is there another way to do this?  Is there a way I can POST to the trigger script from my hosted TestRail account with the runID and then let the code on my server take it from there?

Thanks,

-Kent


Feature Request: Colorize Test Step number box with result status

$
0
0

TestRail Test (not a Case)

https://lh5.googleusercontent.com/-eC_WDJdqh8M/VNP7BVzcf3I/AAAAAAAADxc/uI7nngLQ6Lw/w898-h473-no/testrail_results.png

We use the TestRail API to link our automated tests to TestRail Cases and Case Steps.  Within a single Case we may have some steps automated, but not all.  The rest must be tested manually.  When we exercise our automated tests against a TestRail Run, we send test results to the Steps.  However, the only way to see the status of the Test Steps is to look down through the results history at the bottom of the TestRail Test.  It would be INCREDIBLY useful to our manual testers if these Test Step boxes were colored according to the newest test result in the result history.  They would no longer need to scroll down through the results and struggle to determine which steps are not already tested.

Thanks and Kind Regards,

Casey Motherway
Elemental Technologies Inc.

Linkable custom field?

$
0
0

Can I create a custom field that links to an external tool like JIRA?

I want to create a custom field that works like the references field but stores that value of a different JIRA issutype (EPIC). It would not work to list the story id and Epic id in the same references field as it would not then be serachable.

(I answered my previous question on missing custom field, I had assigned it to the test result not testcase screen)

[UI Script] Colorize Test Step number box with result status

$
0
0

Based on this request: http://forum.gurock.com/topic/2004/feat … lt-status/

name: Colorize Test Step number box with result status
description: Copies colors from the last test result (if present) to the test description. Also updates colors whenever new result is added
author: Paul Danyliuk
version: 1.0
includes: ^tests/view
excludes:

js:
$(document).ready(function() {

  var updateStepsColors = function() {

    // Get number labels from the last (topmost) steps in the history
    var lastSteps = $(".change:first-of-type .steps .step-index-inner");

    // If no last steps found, do nothing
    if (lastSteps.length == 0) {
      return;
    }

    // Get number labels for the steps that need to be colorized
    var mainSteps = $(".field-content .steps .step-index-inner");

    // And copy the style (colors) over from the last steps to the main ones
    for (var i = 0; i < lastSteps.length; i++) {
      $(mainSteps[i]).attr('style', $(lastSteps[i]).attr('style'));
    }
  };

  // Call this as soon as the page loads
  updateStepsColors();

  // And call this whenever result is added
  $.subscribe('tests.changed', 'recolorize', function (data) {
    updateStepsColors();
  });

});

The colors are updated when you add a new result.
Here's how it will look:
http://content.screencast.com/users/Actine/folders/Jing/media/f55afd79-74de-4828-8efe-bece149b0760/2015-02-06_1901.png

With best regards,
~Actine

Feature Request: Add REST API to persist any plaintext data

$
0
0

UI scripts is a very powerful feature of TestRail allowing to extend it with new functionality, write plugins etc. However, currently there's no way a UI script can store any extra data, which is not related to the tests, on the server (e.g. some UI script settings that shouldn't be hardcoded).
This would allow for creating complex UI scripts that may need to persist their state, some custom NoSQL database etc (for instance, I am interested in writing a TestRail plugin for steps auto-completion somewhere in the future, and that would require my UI script to persist an array of step strings). And allowing for storing/retrieving plaintext (e.g. separate files for each script, identified by filename) would be the simplest solution from your side.

Thanks!

With best regards,
Actine

UI script: In test run view, add column to indicate attachments

$
0
0

We would really like to be able to quickly see which test case results in a test run have attachments on them.  I'm new to UI scripts but from the other posts in this forum, it seems like it wouldn't be too hard.  Is there already a script that does what I'm describing?

Importing test steps in specific format

$
0
0

I have test steps in a specific format in my .csv sheet. For each row under the Testing Steps column, all the steps for each test case is in one row, not on its own row like in some of the examples.

I am having trouble modifying the custom_filter.php to correctly read this format and import it into TestRail correctly.

Can anybody help me with this?

Can we change the order of test cases in a test run?

$
0
0

I am making very satisfactory progress with kicking off maven/webdriver automation via a test run in TestRail and retrieving the results for each test.  This is huge and a big step forward from the way I was doing it earlier.

One problem.  I'd LOVE to be able to manipulate the order of test cases in a run after selecting them.  Is this possible?  I realize the ideal in automation is for every test to stand completely alone, but there are times when it would be nice to follow a certain flow and it seems that changing the order of tests in a run shouldn't be a very tall order (easy for me to say wink).


Change background color for certain rows in "Test Cases" view

$
0
0

Hi,

is there a way to change the background color for certain rows in the "Test Cases" view based on some criteria?

For example I got 1000 text cases and 100 have the priority "Very High", 200 "High" and the rest is "Low".
The table rows of all test cases which have the priority "Very High", should be colored red, "High" should be orange and "Low" should be yellow.
This should also work for other criteria like custom fields wihich contain different values.

This would increase the usability and navigation if you have many test cases.

Add result, move to next test case, and re-open result dialog

$
0
0

I would like to create a ui script which will add a result.  Copy those values to session, move to the next test case and then re-open the result dialog with the values filled in from previous test case.
Currently I have one uiscript which creates a custom checkbox for copying the values and one for advancing the test case. 
The same script copies the values to the session for use on the next test case.
I have a second script which checks for the session value telling it to advance to the next test case.  Which it then does.  My issue is how do I get the result dialog to re-open after advancing to the next test case?

Thanks for any assistance in advance.

Restructuring Projects Advice

$
0
0

Hi there,

I'm looking at restructuring our TestRail projects to encompass a new product and see if I can reduce duplication.

I'm not sure how to best do this so I thought I'd put it forward to the community/TestRail for ideas.

Current Project Structure:
- Product1
- Product2
- Other Project

- Product1 is the original. It is an active product (bug fixes, releases to existing customers) but will become a legacy product (eventually!). Technology is slowly being migrated.
- Product2 is the same product as 1, but unreleased and being developed in new technology. Functional goals are the same but achieved in new better ways. E.g. Validate doing x is the same for Products 1 and 2, but some test steps may be different depending on implementation improvements.
- Other Project currently contains a Licensing Server suite, which touches ALL products. And a new suite for a new product that relates to Products 1 and 2. Mainly because I needed to put it somewhere and I wasn't convinced where.

My problem: I feel like I need to be able to share Test Suites and results between Projects to avoid duplication and make maintenance easier. I'm not sure that TestRail Projects are designed for "Product Suites" - products that interrelate under an overarching brand. Rather, projects only seem useful for independent Products. Either that, or be able to have "grouped" test suites... Or a tagging option that allows me to go "show me only test suites that relate to x product"... My developers (when they do testing) also complain not knowing where to put things or where to find suits/cases and having to navigate between projects. I want to make it easier for them too.

Product1 and Product2 share: Product licensing cases, some config apps, some integrated functionality, and the same installer.
The Licensing Server (in Other atm): Touches everything.
The new Product (in Other atm): Is part of the same Product suite as Products 1 and 2. Is essentially an Add-On product. Uses data from Products 1 and 2, but can then be tested separately.

When I originally organised the products, we didn't have a "product suite" just the core Product 1, which was going to be replaced with Product 2. That is no longer the case.

I feel like my best solution at the moment is to dump everything into one project and prefix test suites with the product. However this then means I have loads of test suites and the naming gets very long.

Anyone with any advice? (Can clarify if I haven't explained sufficiently).

How to trigger Automation scripts on a local machine and on Jenkins

$
0
0

Hi,

I am a QA engineer and below are my requirements.
1. I would like to try triggering Automation scripts, which will run locally on my machine.
2. I would like to trigger Automation scripts, which will run in our CI server (Jenkins).

In both the cases, I am going to use Squish and ours is not a web application.

My question may duplicate with other questions, But I am looking for some sample code and detailed steps/a simple video to start with.

I hope this will be helpful to many who wants to start with CI.

Thanks.

Security for API Access

$
0
0

I was just wondering if the API is enabled to work with a test automation tool can anyone with a valid account interact with it? Is there anyway to control who has the permission to write scripts that "get" or "push" test results?

If not what are the risks that this could affect performance or cause any other damage" Are they basically limited to their global role? Can testers push results or does the user need to be a lead?

We are on a self hosted server running on https using version 3.1.1.3130. We are also behind a proxy that receives the https requests on port 443 and then forwards the requests to the TestRail server running Apache but listening on port 80 via http. This is required as the Apache server recieving the https traffic sits in a different zone taking external traffic then forwards it through a firewall where the app and db servers reside.

Email to all TestRail Users in project(s)

$
0
0

Is there a way in TestRial to email all the users or selective users in project(s) on a topic that would affect them?

[UI Script] Make field required if test is in particular state

$
0
0

On add test result dialog I only want to make a field required if the test is in a particular state e.g. if the test is failed then the comment field should be required.

I have tried using the following:
uiscripts.context.test

with uiscripts.context.test.status to try and get the status of the result dialog, however this is unsuccessful. Any help appreciated. thanks as always


Jenkins Integration

$
0
0

Hi,

We currently run test scripts in jenkins and would like these to update runs and results within TestRail. I have seen that there was a jenkins plugin (SimplyMeasured) for this but I cannot find it anywhere. In the mean time I have been using the API to add a run and update it with a result.

Please could you advise if there is anything out there that can do this for us from Jenkins as I am more than likely going to have to write a script to run all of the API calls (passing in arguments).

regards,
Duncan

Test Runs by test case group? (on TestRail 3.1.2.3142)

$
0
0

Currently on TestRail 3.1.2.3142.

When creating a test run w/ multiple tests, the default test run view is grouped by test status (ie: Untested, Passed, Blocked, etc.).

Is there a way to change the test run view grouped by:
- from test status
- to test case groups/folder hierarchy?

Thanks,
G.Yuen

Re-using Test Runs and Assignments

$
0
0

Hi,
We are attempting to copy our test runs, however it is not retaining any of the assignment information when you use the "re-run" function.  Is there a way to retain the assignment information from the previous test run?  Also, can you copy test runs between Milestones (ie, releases)?  We have the same testers executing many of the same scripts each release, and the most time consuming aspect is adding in the assignments. It would be helpful if the test runs can be copied to the next release and retain the test script and assignment information.

Thanks,
Sonia

Bugzilla Integration Problem

$
0
0

Hello, I am one of the users of Testrail (possessing both licensed and trial version), and there is something that I would like to ask. I am trying to integrate Bugzilla (Cloud trial version) and facing the error, “Plugin "Bugzilla" returned an error: You must select/enter a OS. (faultCode: 50)."

I also found the same question, and there were two solutions available.

1. Changing the field to not required in Bugzilla (recommended). This is the easiest option and can also be used to test the integration temporarily.
2. Customizing the Bugzilla defect plugin in TestRail and adding the field to the push dialog. This is more complicated and requires some changes to the source code of the defect plugin as explained here:
http://docs.gurock.com/testrail-integra … ins-custom

Here's my question. Since option #2 will be complicated to me, I tried using option #1. However, I do not really understand how to change the field (that does not require OS to be selected/entered). Even though I searched in Google and all the tabs/options (like Administration/preferences) in my Bugzilla, I could not identify/discover the settings that is related to OS options. In the "OS" field in Bugzilla, there is a sentence, "   
We've made a guess at your operating system and platform. Please check them and make any corrections if necessary." Is my problem related to this sentence?

When I tried integrating Testrail with Jira, it worked really well. I don't still understand the integration problem between Testrail and Bugzilla.

I will wait for your response.

Thank you

Jeff

P.S. I was able to find cloud trial version through google search (because I did not want to spend too much time for installing Bugzilla in my Server).

Integration with Jira Server Version

$
0
0

Hello, there is one question that I would like to make sure.

Currently, I am using trial (cloud) version of Testrail, and I was able to integrate Testrail with JIRA (currently using cloud version). In addition, The integration between JIRA and TestRail was successful. Here's my question, if I want to integrate server version (licensed) of JIRA with the licensed server version of Testrail, will the connection (integration) be successful? I mean will there be any restrictions that will result in unsuccessful integration?

I will wait for your response.

Thank you

Viewing all 829 articles
Browse latest View live