Question regarding custom setup

37 views
Skip to first unread message

Ravi Jammi

unread,
Feb 23, 2014, 2:18:42 AM2/23/14
to bite-d...@googlegroups.com
Hi There,
I was able to successfully build and get it working on my chrome. However, i want to change this to point my own instance of JIRA and integrate with my internal Test Management system.
Was anybody able to get this working with JIRA and any custom test management system?
Any pointers on this would be really helpful.

Thanks,
Ravi

Jason Stredwick

unread,
Feb 23, 2014, 8:28:29 PM2/23/14
to bite-d...@googlegroups.com
I am know we had integration at some point, but I don't remember.  I also don't remember specifics, but to answer your question I need more specifics.  My guess is that the extension will send up bug info to the AppEngine server.  From there you could override (or add your own code) to save some information JIRA while it is saving it to AppEngine.  Or skip the AppEngine save and just save to JIRA.  You also have a choice on authorization for JIRA.  You can create the connection when the bug is filed then close the connection.  Or you can add code to the login/logout code to also login/logout of JIRA.  That is my guess though I can't give specific line numbers.  All of this code would be on the server-side and not in the extension(client-side).

Jason


--
You received this message because you are subscribed to the Google Groups "bite-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bite-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ravi Jammi

unread,
Feb 24, 2014, 2:15:24 AM2/24/14
to bite-d...@googlegroups.com
Hi Jason,
Thanks so much for your reply. That is what i thought.
My initial thought was to directly go to JIRA and skip the appengine save, i am trying to find this is which class takes care of this for me so that i could override that piece of code to save to JIRA instead of the appengine. Can you point me to that please?

Mean while i wanted to get the existing version working to see how it works for me end to end, so i searched around in the forums and the previous responses and was able to get my own AppEngine server up and running with the existing server-side code. I made the necessary changes to the constants.js file to point to my version running on AppEngine. But, when i try to create a new bug, i get an alert "Invalid id data received; Request failed." Am i doing anything wrong here?

Thanks,
Ravi

Jason Stredwick

unread,
Feb 24, 2014, 1:03:01 PM2/24/14
to bite-d...@googlegroups.com
Unfortunately, I am not certain of the error you are seeing.  The last time I used it it was working.  You should be able to go into your AppEngine app and to the logs.  Then file a bug.  When you refresh the log you should see the error appear because the client is receiving an "error" type response.  If you don't see an error in the server then it is erroring out in the client before it sends.  I don't remember it doing pre-send-to-server validation, but I may be wrong.

Unfortunately, I don't remember the code base to point you to the specific things you were looking for.  However, client-side most things run through background.js and content.js (most to the server things are through background.js).


For the server-side, most of the code will be in the handlers folder.  You might want to start with this one:


Jason

Ravi Jammi

unread,
Feb 24, 2014, 2:17:37 PM2/24/14
to bite-d...@googlegroups.com
Thanks for the details Jason, i will dig around and see what i can figure out.
I actually tried to point to the existing appengine, and i mean to the following:

bite.options.constants.ServerChannelOption = {

  DEV: 'https://jason-stredwick-sandbox.appspot.com',

  RELEASE: 'https://bite-playground.appspot.com'

};

It works fine if i point to the above.

But if i point to my version of the appengine i run into this issue. And after creating bringing my version of the appengine running, is there anything specific i would have to configure on the appengine?

I ran the following command:

$ appcfg.py -A my-bite-server -V 1 update output/server

And here is the output:

11:00 AM Application: my-bite-server (was: invalid-do-not-change-see-comments); version: 1 (was: invalid-do-not-change-see-comments)

11:00 AM Host: appengine.google.com

11:00 AM 

Starting update of app: my-bite-server, version: 1

11:00 AM Getting current resource limits.

Email: Email-ID

Password for Email-ID: 

11:01 AM Scanning files on local disk.

Could not guess mimetype for scripts/soys/explore_page.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/project_details_page.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/result_page.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/run_details_overview.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/run_details_page.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/run_details_results.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/run_details_settings.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/set_details_page.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/set_details_runs.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/store.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/run_details_settings.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/run_details_results.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/explore_page.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/run_details_overview.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/project_details_page.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/set_details_runs.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/set_details_page.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/result_page.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/store.soy.  Using application/octet-stream.

Could not guess mimetype for scripts/soys/run_details_page.soy.  Using application/octet-stream.

11:01 AM Cloning 96 static files.

11:01 AM Cloning 364 application files.

11:01 AM Compilation starting.

11:01 AM Compilation completed.

11:01 AM Starting deployment.

11:01 AM Checking if deployment succeeded.

11:01 AM Deployment successful.

11:01 AM Checking if updated app version is serving.

11:01 AM Will check again in 1 seconds.

11:01 AM Checking if updated app version is serving.

11:01 AM Completed update of app: my-bite-server, version: 1

11:01 AM Uploading index definitions.

11:01 AM Uploading cron entries.

11:01 AM Uploading task queue entries.

Thanks,
Ravi

Jason Stredwick

unread,
Feb 24, 2014, 2:24:12 PM2/24/14
to bite-d...@googlegroups.com
When you create the AppEngine app you created it called my-bite-server?  Then accessing it in the client would be


As long as version "1" is the default version.  If it is not then you need it to be


***NOTE: The output from the update looks correct.

JasonS

Ravi Jammi

unread,
Feb 24, 2014, 2:46:09 PM2/24/14
to bite-d...@googlegroups.com
Ahh that was the problem, it works fine when i point to:


But interestingly i actually created the AppEngine app and called it my-bite-server, and hence i was pointing to: https://my-bite-sever.appspot.com
Does not work when i point it to that url, but works fine with the one you suggested.

Thanks for all the help Jason. Now, i can start playing around more on the server-side of things. One final question though, in your demo you mentioned something about the test plan getting generated automatically in plain english. Is that something available on the client side with the current version?

-Ravi

Ravi Jammi

unread,
Feb 24, 2014, 8:07:53 PM2/24/14
to bite-d...@googlegroups.com
My bad did not realize that i could use "Ctrl+Alt+s" to convert the generated code to be translated to readable script.

Thanks,
Ravi
Reply all
Reply to author
Forward
0 new messages