Find Jobs
Hire Freelancers

Write a custom JUNIT(XML) to Elasticsearch(JSON) parser in Python

€30-250 EUR

En cours
Publié il y a presque 4 ans

€30-250 EUR

Payé lors de la livraison
The requirement is to write a PEP-8 compliant, well documented Python code that takes user-driven inputs and parse the contents recursively. Followup queries on the code should be answered via email form your end. There is some sample data below this folder, you will need to translate it from the .xml and .properties file into json data that is suitable for importation into elasticsearch where it will be searchable - all fields should be searchable. We need the following items in each test result: • junit results are split into collections of suites, which have a known name. Each suite has a stdout and stderr. • testsuite has: ○ file, name, stdout, stderr, duration, timestamp and time ○ Each suite is split into one or more testcases, each case has the following mandatory information: § duration, className, testName, skipped, failedSince ○ In the case of failed/error testcases you will also have: § errorStackTrace • You can determine if a test has failed by the presence of a non-zero value in the failedSince field. • From the test results themselves we need the following information in every test case result: ○ file, name, timestamp • From the run properties we need the following information: ○ brand, revision, runtype, category, job_name •         From the foldername, we have the job_number In every test case we will need the following information: ○ duration, className, testName, skipped You will need to calculate the following pieces of information: • passed (boolean) - based on the failedSince value being non-zero • starttime (datetime) - take suite start time, add all prior durations of testcases to get an estimated start time • id - a unique id based on the testcase If there are required target fields for the results and they not mentioned in these requirements then they need to be filled in as empty. target elastic document structure: {    job_number: integer,    brand: string,    revision: integer,    runtype: string,    category: string,    job_name: string,    file: string,    name: string,    timestamp: timestamp,    classname: string,    testname: string,    duration: numeric,    skipped: boolean,    passed: boolean,    starttime: timestamp,    stdout: string,    stderr: string,    id: string } Desired outcome of your delivery should include: A functioning script that: • takes a source directory to start from. • reads the results in the directories. • Produce as output new-line delimited json documents for import into elasticsearch. The output json should be configurable to output to either : • stdout (all output) • folder - files named: <job_name>_<job_number>.json In the folder option, the folder should exist before the processing of data. Important notes: • The file should be pep-8 clean • The file should be documented. Include desertion for functions, imports, any parsing logic implemented. The parse from XML to JSON be done in two passes.
N° de projet : 25876173

Concernant le projet

1 proposition
Projet à distance
Actif à il y a 4 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
1 freelance propose en moyenne €120 EUR pour ce travail
Avatar de l'utilisateur
Hi, Sir!! i am a python expert and full-stack developer with full time. -):-):-) i want to help you with my python skills :-):-):-) “””” Specially Data Science , Data Analysis “””” i use sklearn , Tensorflow, keras for Machine Learning , Deep Learning, NTLK for Natural Language Processing, OpenCV for Image Processing, pandas for Data Analaysis, selenium and beautiful soup for scrapping, kivy, tkinder, PyQt for GUI, Django, Flask, bottle for Backend.... @@PLEASE GIVE ME CHANCE TO PROVE MY SKILLS@@ if you HIRE me, i will do my best to complete your project perfectly in time. Thanks for attention. Best Regards.
€120 EUR en 3 jours
5,0 (4 commentaires)
3,6
3,6

À propos du client

Drapeau de IRELAND
Athlone, Ireland
0,0
0
Méthode de paiement vérifiée
Membre depuis juin 4, 2020

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.