GithubHelp home page GithubHelp logo

gsheets-to-polarion-xunit's Introduction

gsheets-to-polarion-xunit

This is an auxiliary tool for Devstudio QE team to make our life and misery with Polarion a bit easier.

How to run?

  1. Enable google sheets API in Google docs & obtain yoursef an client_secret.json file and put it into src/main/resources [1]

  2. Run mvn exec:java -Dsheet.id=<your_google_sheet_id> -Dtestrun.id=<test_run_id> -Did.column.char=<char> -Dverdict.column.char=<char> -Dcomment.column.char=<char>

Chars can be in upper or lower case. There is some basic check in code for validity.

Default values are:

verdict.column.char = 'A'; comment.column.char = 'B'; id.column.char = 'C';

  1. You are done! Desired XML should be written to file TEST_RUN_ID.xml.

How to import to polarion?

Once you have xunit TEST_RUN_ID.xml file generated you can import them into polarion:

curl -k -u "<username>:<password>" -X POST -F file=@/path/to/TEST_RUN_ID.xml <polarion-instance-url>/import/xunit

You should get response like:

<html>
<head>
<title>Polarion xUnit Importer</title>
</head>
<body bgcolor="white">
<p>The following files are being imported:</p>
<ul>
<li>TEST_RUN_ID.xml</li>
</ul>
</body>
</html>

If you want to see the result of your import, you can subscribe to log. How to do that is described in this mojo page: https://mojo.redhat.com/docs/DOC-1073077

Note: This is first version which expects google sheet in some specific format. If needed, we can make it more configurable.

Link to logs: a) http://ops-qe-logstash-2.rhev-ci-vms.eng.rdu2.redhat.com:9981/polarion/ b) http://ops-qe-logstash-2.rhev-ci-vms.eng.rdu2.redhat.com:9981/polarion/JBDS/

Example polarion instance url: https://polarion.engineering.redhat.com/polarion

[1] How to get it? See "Step 1" here: https://developers.google.com/sheets/api/quickstart/java

gsheets-to-polarion-xunit's People

Contributors

psrna avatar rhopp avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.