Getting ERRORS while Creating a new Defect in Rally using python












1















Following is my code to add new defect to rally using python:



import sys import time from pyral import Rally, rallyWorkset
server = "rally1.rallydev.com"
user = "*****"
password = "****"
apikey = "****"
workspace = "****"
project = "****"
rally = Rally(server, user=user, password=password,apikey=apikey, workspace=workspace, project=project)

project_req = rally.get('Project', fetch=True, query='Name = "%s"' % (project))
project = project_req.next()

priority = "3.Normal"
severity = "Major Problem"
name = "prabhakar.sharma@***.com"
#defectID = 'INC0547865'
description = "A Test Rally User Story created using python API now, start working on it as fast as you all could !!"
user = rally.getUserInfo(username=name).pop(0)
#rally.setProject(proj)
print("%s %s "% (project.oid , user.ref))
defect_data = { "Project" : project.ref,
"SubmittedBy" : user.ref,
"Name" : name,
"Severity" : severity,
"Priority" : priority,
"State" : "Open",
"ScheduleState" : "Defined",
"Owner": user.ref,
"Description" : description
}


defect = rally.create('Defect', defect_data) print("Defect created, ObjectID: %s FormattedID: %s" % (defect.oid, defect.FormattedID))


Traceback:




Traceback (most recent call last): File "pythonrally.py", line 186,
in
defect = rally.create('Defect', defect_data) File "C:UsersPRABHAKAR.SHARMAAppDataLocalProgramsPythonPython37pyralrestapi.py",
line 1024, in put
raise RallyRESTAPIError(problem) pyral.restapi.RallyRESTAPIError: 422 Validation error: Defect.PRJ# should not be null











share|improve this question

























  • I'm not familiar with Rally, and I can't quickly locate this method in the documentation; but it clearly tells you that the input you are providing to the create method is not valid. It apparently expects something different, perhaps wrapped in an object rather than a dict?

    – tripleee
    Jan 4 at 5:21
















1















Following is my code to add new defect to rally using python:



import sys import time from pyral import Rally, rallyWorkset
server = "rally1.rallydev.com"
user = "*****"
password = "****"
apikey = "****"
workspace = "****"
project = "****"
rally = Rally(server, user=user, password=password,apikey=apikey, workspace=workspace, project=project)

project_req = rally.get('Project', fetch=True, query='Name = "%s"' % (project))
project = project_req.next()

priority = "3.Normal"
severity = "Major Problem"
name = "prabhakar.sharma@***.com"
#defectID = 'INC0547865'
description = "A Test Rally User Story created using python API now, start working on it as fast as you all could !!"
user = rally.getUserInfo(username=name).pop(0)
#rally.setProject(proj)
print("%s %s "% (project.oid , user.ref))
defect_data = { "Project" : project.ref,
"SubmittedBy" : user.ref,
"Name" : name,
"Severity" : severity,
"Priority" : priority,
"State" : "Open",
"ScheduleState" : "Defined",
"Owner": user.ref,
"Description" : description
}


defect = rally.create('Defect', defect_data) print("Defect created, ObjectID: %s FormattedID: %s" % (defect.oid, defect.FormattedID))


Traceback:




Traceback (most recent call last): File "pythonrally.py", line 186,
in
defect = rally.create('Defect', defect_data) File "C:UsersPRABHAKAR.SHARMAAppDataLocalProgramsPythonPython37pyralrestapi.py",
line 1024, in put
raise RallyRESTAPIError(problem) pyral.restapi.RallyRESTAPIError: 422 Validation error: Defect.PRJ# should not be null











share|improve this question

























  • I'm not familiar with Rally, and I can't quickly locate this method in the documentation; but it clearly tells you that the input you are providing to the create method is not valid. It apparently expects something different, perhaps wrapped in an object rather than a dict?

    – tripleee
    Jan 4 at 5:21














1












1








1








Following is my code to add new defect to rally using python:



import sys import time from pyral import Rally, rallyWorkset
server = "rally1.rallydev.com"
user = "*****"
password = "****"
apikey = "****"
workspace = "****"
project = "****"
rally = Rally(server, user=user, password=password,apikey=apikey, workspace=workspace, project=project)

project_req = rally.get('Project', fetch=True, query='Name = "%s"' % (project))
project = project_req.next()

priority = "3.Normal"
severity = "Major Problem"
name = "prabhakar.sharma@***.com"
#defectID = 'INC0547865'
description = "A Test Rally User Story created using python API now, start working on it as fast as you all could !!"
user = rally.getUserInfo(username=name).pop(0)
#rally.setProject(proj)
print("%s %s "% (project.oid , user.ref))
defect_data = { "Project" : project.ref,
"SubmittedBy" : user.ref,
"Name" : name,
"Severity" : severity,
"Priority" : priority,
"State" : "Open",
"ScheduleState" : "Defined",
"Owner": user.ref,
"Description" : description
}


defect = rally.create('Defect', defect_data) print("Defect created, ObjectID: %s FormattedID: %s" % (defect.oid, defect.FormattedID))


Traceback:




Traceback (most recent call last): File "pythonrally.py", line 186,
in
defect = rally.create('Defect', defect_data) File "C:UsersPRABHAKAR.SHARMAAppDataLocalProgramsPythonPython37pyralrestapi.py",
line 1024, in put
raise RallyRESTAPIError(problem) pyral.restapi.RallyRESTAPIError: 422 Validation error: Defect.PRJ# should not be null











share|improve this question
















Following is my code to add new defect to rally using python:



import sys import time from pyral import Rally, rallyWorkset
server = "rally1.rallydev.com"
user = "*****"
password = "****"
apikey = "****"
workspace = "****"
project = "****"
rally = Rally(server, user=user, password=password,apikey=apikey, workspace=workspace, project=project)

project_req = rally.get('Project', fetch=True, query='Name = "%s"' % (project))
project = project_req.next()

priority = "3.Normal"
severity = "Major Problem"
name = "prabhakar.sharma@***.com"
#defectID = 'INC0547865'
description = "A Test Rally User Story created using python API now, start working on it as fast as you all could !!"
user = rally.getUserInfo(username=name).pop(0)
#rally.setProject(proj)
print("%s %s "% (project.oid , user.ref))
defect_data = { "Project" : project.ref,
"SubmittedBy" : user.ref,
"Name" : name,
"Severity" : severity,
"Priority" : priority,
"State" : "Open",
"ScheduleState" : "Defined",
"Owner": user.ref,
"Description" : description
}


defect = rally.create('Defect', defect_data) print("Defect created, ObjectID: %s FormattedID: %s" % (defect.oid, defect.FormattedID))


Traceback:




Traceback (most recent call last): File "pythonrally.py", line 186,
in
defect = rally.create('Defect', defect_data) File "C:UsersPRABHAKAR.SHARMAAppDataLocalProgramsPythonPython37pyralrestapi.py",
line 1024, in put
raise RallyRESTAPIError(problem) pyral.restapi.RallyRESTAPIError: 422 Validation error: Defect.PRJ# should not be null








python rally






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 6 at 5:34







prabhakar sharma

















asked Jan 2 at 5:01









prabhakar sharmaprabhakar sharma

62




62













  • I'm not familiar with Rally, and I can't quickly locate this method in the documentation; but it clearly tells you that the input you are providing to the create method is not valid. It apparently expects something different, perhaps wrapped in an object rather than a dict?

    – tripleee
    Jan 4 at 5:21



















  • I'm not familiar with Rally, and I can't quickly locate this method in the documentation; but it clearly tells you that the input you are providing to the create method is not valid. It apparently expects something different, perhaps wrapped in an object rather than a dict?

    – tripleee
    Jan 4 at 5:21

















I'm not familiar with Rally, and I can't quickly locate this method in the documentation; but it clearly tells you that the input you are providing to the create method is not valid. It apparently expects something different, perhaps wrapped in an object rather than a dict?

– tripleee
Jan 4 at 5:21





I'm not familiar with Rally, and I can't quickly locate this method in the documentation; but it clearly tells you that the input you are providing to the create method is not valid. It apparently expects something different, perhaps wrapped in an object rather than a dict?

– tripleee
Jan 4 at 5:21












2 Answers
2






active

oldest

votes


















0














Changes:




  1. Must use "username=name" (where 'name' is a login ID) instead of "username=user".

  2. The field "When" is not part of a Defect (commented out below).

  3. The field "PRJ#" is not part of a Defect (commented out below).


  4. The project ref must be specified as "proj.ref" instead of "project.ref".



    $ diff code.orig code.new
    10c10
    < user = rally.getUserInfo(username=user).pop(0)
    ---
    > user = rally.getUserInfo(username=name).pop(0)
    12,14c12,14
    < defect_data = { "When" : when,
    < "PRJ#" : project.oid,
    < "Project" : project.ref,
    ---
    > defect_data = { #"When" : when,
    > #"PRJ#" : proj.oid,
    > "Project" : proj.ref,



The above changes worked for me.






share|improve this answer
























  • Hey @JPKole , I am glad that worked for you but I am still struggling. I did the changes you mentioned above too. Is there still anything i am missing maybe theoretically or code-wise !! I updated the question above. Thanks

    – prabhakar sharma
    Jan 6 at 5:22



















0














So, I changed below line :



defect = rally.create('Defect', defect_data) print("Defect created, ObjectID: %s  FormattedID: %s" % (defect.oid, defect.FormattedID))


to



defect = rally.create('UserStory', defect_data) print("Defect created, ObjectID: %s  FormattedID: %s" % (defect.oid, defect.FormattedID))


and following what errors were telling me I got it working.
Also, I removed few fields from 'defect_data' as following:



defect_data = { "Project" : project.ref,
#"SubmittedBy" : user.ref,
"Name" : name,
#"Severity" : severity,
"Priority" : priority,
#"State" : "Open",
"ScheduleState" : "Defined",
"Owner": user.ref,
"Description" : description
}


Final Code:



project_req = rally.get('Project', fetch=True, query='Name = "%s"' % (project))
project = project_req.next()
priority = "Normal"
severity = "Major Problem"
name = "prabhakar.sharma@dish.com"
#when = "2018.12.26 - 2019.01.01"
#defectNum = 'INC0547865'
description = "Just one more test Rally User Story created using python API now, start working on it as fast as you all could !!"
user = rally.getUserInfo(username=user).pop(0)
#rally.setProject(proj)
print("%s %s "% (project.ref , user.ref))
defect_data = { "Project" : project.ref,
#"SubmittedBy" : user.ref,
"Name" : name,
#"Severity" : severity,
"Priority" : priority,
#"State" : "Open",
"ScheduleState" : "Defined",
"Owner": user.ref,
"Description" : description
}
try:
print("am here %s "% defect_data)
defect = rally.create('UserStory', defect_data)
except Exception as e:
sys.stderr.write('ERROR: %s n' % Exception)
print(e)
sys.exit(1)


Hope this serves someone facing any problem like this one !! Cheers






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54001424%2fgetting-errors-while-creating-a-new-defect-in-rally-using-python%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Changes:




    1. Must use "username=name" (where 'name' is a login ID) instead of "username=user".

    2. The field "When" is not part of a Defect (commented out below).

    3. The field "PRJ#" is not part of a Defect (commented out below).


    4. The project ref must be specified as "proj.ref" instead of "project.ref".



      $ diff code.orig code.new
      10c10
      < user = rally.getUserInfo(username=user).pop(0)
      ---
      > user = rally.getUserInfo(username=name).pop(0)
      12,14c12,14
      < defect_data = { "When" : when,
      < "PRJ#" : project.oid,
      < "Project" : project.ref,
      ---
      > defect_data = { #"When" : when,
      > #"PRJ#" : proj.oid,
      > "Project" : proj.ref,



    The above changes worked for me.






    share|improve this answer
























    • Hey @JPKole , I am glad that worked for you but I am still struggling. I did the changes you mentioned above too. Is there still anything i am missing maybe theoretically or code-wise !! I updated the question above. Thanks

      – prabhakar sharma
      Jan 6 at 5:22
















    0














    Changes:




    1. Must use "username=name" (where 'name' is a login ID) instead of "username=user".

    2. The field "When" is not part of a Defect (commented out below).

    3. The field "PRJ#" is not part of a Defect (commented out below).


    4. The project ref must be specified as "proj.ref" instead of "project.ref".



      $ diff code.orig code.new
      10c10
      < user = rally.getUserInfo(username=user).pop(0)
      ---
      > user = rally.getUserInfo(username=name).pop(0)
      12,14c12,14
      < defect_data = { "When" : when,
      < "PRJ#" : project.oid,
      < "Project" : project.ref,
      ---
      > defect_data = { #"When" : when,
      > #"PRJ#" : proj.oid,
      > "Project" : proj.ref,



    The above changes worked for me.






    share|improve this answer
























    • Hey @JPKole , I am glad that worked for you but I am still struggling. I did the changes you mentioned above too. Is there still anything i am missing maybe theoretically or code-wise !! I updated the question above. Thanks

      – prabhakar sharma
      Jan 6 at 5:22














    0












    0








    0







    Changes:




    1. Must use "username=name" (where 'name' is a login ID) instead of "username=user".

    2. The field "When" is not part of a Defect (commented out below).

    3. The field "PRJ#" is not part of a Defect (commented out below).


    4. The project ref must be specified as "proj.ref" instead of "project.ref".



      $ diff code.orig code.new
      10c10
      < user = rally.getUserInfo(username=user).pop(0)
      ---
      > user = rally.getUserInfo(username=name).pop(0)
      12,14c12,14
      < defect_data = { "When" : when,
      < "PRJ#" : project.oid,
      < "Project" : project.ref,
      ---
      > defect_data = { #"When" : when,
      > #"PRJ#" : proj.oid,
      > "Project" : proj.ref,



    The above changes worked for me.






    share|improve this answer













    Changes:




    1. Must use "username=name" (where 'name' is a login ID) instead of "username=user".

    2. The field "When" is not part of a Defect (commented out below).

    3. The field "PRJ#" is not part of a Defect (commented out below).


    4. The project ref must be specified as "proj.ref" instead of "project.ref".



      $ diff code.orig code.new
      10c10
      < user = rally.getUserInfo(username=user).pop(0)
      ---
      > user = rally.getUserInfo(username=name).pop(0)
      12,14c12,14
      < defect_data = { "When" : when,
      < "PRJ#" : project.oid,
      < "Project" : project.ref,
      ---
      > defect_data = { #"When" : when,
      > #"PRJ#" : proj.oid,
      > "Project" : proj.ref,



    The above changes worked for me.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 5 at 19:58









    JPKoleJPKole

    1866




    1866













    • Hey @JPKole , I am glad that worked for you but I am still struggling. I did the changes you mentioned above too. Is there still anything i am missing maybe theoretically or code-wise !! I updated the question above. Thanks

      – prabhakar sharma
      Jan 6 at 5:22



















    • Hey @JPKole , I am glad that worked for you but I am still struggling. I did the changes you mentioned above too. Is there still anything i am missing maybe theoretically or code-wise !! I updated the question above. Thanks

      – prabhakar sharma
      Jan 6 at 5:22

















    Hey @JPKole , I am glad that worked for you but I am still struggling. I did the changes you mentioned above too. Is there still anything i am missing maybe theoretically or code-wise !! I updated the question above. Thanks

    – prabhakar sharma
    Jan 6 at 5:22





    Hey @JPKole , I am glad that worked for you but I am still struggling. I did the changes you mentioned above too. Is there still anything i am missing maybe theoretically or code-wise !! I updated the question above. Thanks

    – prabhakar sharma
    Jan 6 at 5:22













    0














    So, I changed below line :



    defect = rally.create('Defect', defect_data) print("Defect created, ObjectID: %s  FormattedID: %s" % (defect.oid, defect.FormattedID))


    to



    defect = rally.create('UserStory', defect_data) print("Defect created, ObjectID: %s  FormattedID: %s" % (defect.oid, defect.FormattedID))


    and following what errors were telling me I got it working.
    Also, I removed few fields from 'defect_data' as following:



    defect_data = { "Project" : project.ref,
    #"SubmittedBy" : user.ref,
    "Name" : name,
    #"Severity" : severity,
    "Priority" : priority,
    #"State" : "Open",
    "ScheduleState" : "Defined",
    "Owner": user.ref,
    "Description" : description
    }


    Final Code:



    project_req = rally.get('Project', fetch=True, query='Name = "%s"' % (project))
    project = project_req.next()
    priority = "Normal"
    severity = "Major Problem"
    name = "prabhakar.sharma@dish.com"
    #when = "2018.12.26 - 2019.01.01"
    #defectNum = 'INC0547865'
    description = "Just one more test Rally User Story created using python API now, start working on it as fast as you all could !!"
    user = rally.getUserInfo(username=user).pop(0)
    #rally.setProject(proj)
    print("%s %s "% (project.ref , user.ref))
    defect_data = { "Project" : project.ref,
    #"SubmittedBy" : user.ref,
    "Name" : name,
    #"Severity" : severity,
    "Priority" : priority,
    #"State" : "Open",
    "ScheduleState" : "Defined",
    "Owner": user.ref,
    "Description" : description
    }
    try:
    print("am here %s "% defect_data)
    defect = rally.create('UserStory', defect_data)
    except Exception as e:
    sys.stderr.write('ERROR: %s n' % Exception)
    print(e)
    sys.exit(1)


    Hope this serves someone facing any problem like this one !! Cheers






    share|improve this answer




























      0














      So, I changed below line :



      defect = rally.create('Defect', defect_data) print("Defect created, ObjectID: %s  FormattedID: %s" % (defect.oid, defect.FormattedID))


      to



      defect = rally.create('UserStory', defect_data) print("Defect created, ObjectID: %s  FormattedID: %s" % (defect.oid, defect.FormattedID))


      and following what errors were telling me I got it working.
      Also, I removed few fields from 'defect_data' as following:



      defect_data = { "Project" : project.ref,
      #"SubmittedBy" : user.ref,
      "Name" : name,
      #"Severity" : severity,
      "Priority" : priority,
      #"State" : "Open",
      "ScheduleState" : "Defined",
      "Owner": user.ref,
      "Description" : description
      }


      Final Code:



      project_req = rally.get('Project', fetch=True, query='Name = "%s"' % (project))
      project = project_req.next()
      priority = "Normal"
      severity = "Major Problem"
      name = "prabhakar.sharma@dish.com"
      #when = "2018.12.26 - 2019.01.01"
      #defectNum = 'INC0547865'
      description = "Just one more test Rally User Story created using python API now, start working on it as fast as you all could !!"
      user = rally.getUserInfo(username=user).pop(0)
      #rally.setProject(proj)
      print("%s %s "% (project.ref , user.ref))
      defect_data = { "Project" : project.ref,
      #"SubmittedBy" : user.ref,
      "Name" : name,
      #"Severity" : severity,
      "Priority" : priority,
      #"State" : "Open",
      "ScheduleState" : "Defined",
      "Owner": user.ref,
      "Description" : description
      }
      try:
      print("am here %s "% defect_data)
      defect = rally.create('UserStory', defect_data)
      except Exception as e:
      sys.stderr.write('ERROR: %s n' % Exception)
      print(e)
      sys.exit(1)


      Hope this serves someone facing any problem like this one !! Cheers






      share|improve this answer


























        0












        0








        0







        So, I changed below line :



        defect = rally.create('Defect', defect_data) print("Defect created, ObjectID: %s  FormattedID: %s" % (defect.oid, defect.FormattedID))


        to



        defect = rally.create('UserStory', defect_data) print("Defect created, ObjectID: %s  FormattedID: %s" % (defect.oid, defect.FormattedID))


        and following what errors were telling me I got it working.
        Also, I removed few fields from 'defect_data' as following:



        defect_data = { "Project" : project.ref,
        #"SubmittedBy" : user.ref,
        "Name" : name,
        #"Severity" : severity,
        "Priority" : priority,
        #"State" : "Open",
        "ScheduleState" : "Defined",
        "Owner": user.ref,
        "Description" : description
        }


        Final Code:



        project_req = rally.get('Project', fetch=True, query='Name = "%s"' % (project))
        project = project_req.next()
        priority = "Normal"
        severity = "Major Problem"
        name = "prabhakar.sharma@dish.com"
        #when = "2018.12.26 - 2019.01.01"
        #defectNum = 'INC0547865'
        description = "Just one more test Rally User Story created using python API now, start working on it as fast as you all could !!"
        user = rally.getUserInfo(username=user).pop(0)
        #rally.setProject(proj)
        print("%s %s "% (project.ref , user.ref))
        defect_data = { "Project" : project.ref,
        #"SubmittedBy" : user.ref,
        "Name" : name,
        #"Severity" : severity,
        "Priority" : priority,
        #"State" : "Open",
        "ScheduleState" : "Defined",
        "Owner": user.ref,
        "Description" : description
        }
        try:
        print("am here %s "% defect_data)
        defect = rally.create('UserStory', defect_data)
        except Exception as e:
        sys.stderr.write('ERROR: %s n' % Exception)
        print(e)
        sys.exit(1)


        Hope this serves someone facing any problem like this one !! Cheers






        share|improve this answer













        So, I changed below line :



        defect = rally.create('Defect', defect_data) print("Defect created, ObjectID: %s  FormattedID: %s" % (defect.oid, defect.FormattedID))


        to



        defect = rally.create('UserStory', defect_data) print("Defect created, ObjectID: %s  FormattedID: %s" % (defect.oid, defect.FormattedID))


        and following what errors were telling me I got it working.
        Also, I removed few fields from 'defect_data' as following:



        defect_data = { "Project" : project.ref,
        #"SubmittedBy" : user.ref,
        "Name" : name,
        #"Severity" : severity,
        "Priority" : priority,
        #"State" : "Open",
        "ScheduleState" : "Defined",
        "Owner": user.ref,
        "Description" : description
        }


        Final Code:



        project_req = rally.get('Project', fetch=True, query='Name = "%s"' % (project))
        project = project_req.next()
        priority = "Normal"
        severity = "Major Problem"
        name = "prabhakar.sharma@dish.com"
        #when = "2018.12.26 - 2019.01.01"
        #defectNum = 'INC0547865'
        description = "Just one more test Rally User Story created using python API now, start working on it as fast as you all could !!"
        user = rally.getUserInfo(username=user).pop(0)
        #rally.setProject(proj)
        print("%s %s "% (project.ref , user.ref))
        defect_data = { "Project" : project.ref,
        #"SubmittedBy" : user.ref,
        "Name" : name,
        #"Severity" : severity,
        "Priority" : priority,
        #"State" : "Open",
        "ScheduleState" : "Defined",
        "Owner": user.ref,
        "Description" : description
        }
        try:
        print("am here %s "% defect_data)
        defect = rally.create('UserStory', defect_data)
        except Exception as e:
        sys.stderr.write('ERROR: %s n' % Exception)
        print(e)
        sys.exit(1)


        Hope this serves someone facing any problem like this one !! Cheers







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 7 at 3:57









        prabhakar sharmaprabhakar sharma

        62




        62






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54001424%2fgetting-errors-while-creating-a-new-defect-in-rally-using-python%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Monofisismo

            Angular Downloading a file using contenturl with Basic Authentication

            Olmecas