-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TeamCity Compatability Question? #3
Comments
Hi, I haven't tried TeamCity 9.0.4 yet, but I'll download it and give it a shot, however I'd expect the project to still work with the latest version of TeamCity. If you have any specific errors when running a build with the demo project, please let me know |
Cheers Ross. When you get the time take a look at this. Regards, C From: Ross Rowe <[email protected]mailto:[email protected]> Hi, I haven't tried TeamCity 9.0.4 yet, but I'll download it and give it a shot, however I'd expect the project to still work with the latest version of TeamCity. If you have any specific errors when running a build with the demo project, please let me know — Colin Humphrey [TMW Unlimited] T +44 (0)20 7751 5447 | M As part of the next phase of our development, we are now TMW Unlimited with a broader range of services and an even more sophisticated offering. Database Marketing Award DMA Awards Webby Awards Nominee This email is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this email, please notify the sender by replying to this email. If you are not the intended recipient, please delete this email and do not use, disclose, copy, print or rely on the email in any manner. To the extent permitted by law, Tullo Marshall Warren Limited does not accept or assume any liability, responsibility or duty of care for any use of or reliance on this email by anyone, other than the intended recipient to the extent agreed in the relevant contract for the matter to which this email relates (if any). |
Hi again, just tried TeamCity 9.0.4, and the sample project seemed to run On Mon, Jun 8, 2015 at 8:13 PM, chumphreyTMW [email protected]
|
Hi Ross, Thanks for running your tests against the newest build 9.0.4. Myself and some of the guys from Magentys did some debugging and noticed Also, have you got any documentation about the Sauce Labs Results Tab? I confirm tests are run by logging into SauceLabs however nothing is generated in I look forward to hearing from you soon. Kind regards, Colin From: Marcus Petrat <[email protected]mailto:[email protected]> Hello Colin, thank you for sending me the error log. As with regards to this error in the log:
15:59:36] : [com.saucelabs:sauce-ci-demo] java.lang.NullPointerException I have had a look at this class in the actual github repository (https://github.com/rossrowe/sauce-ci-java-demo). This is the code where the failure is: /**
Have you got the driver jars in your classpath? This should be the 'embedded Selenium RC driver' as mentioned here: http://selenium-client-factory.infradna.com/driver-embeddedRC.html Kind regards, Marcus On 8 June 2015 at 14:34, Colin Humphrey <[email protected]mailto:[email protected]> wrote: Further to my previous email. 1, Verify presence of Magentys/TAF TMW Teamcity Server and if its cloneable. 2, Of the two links below sent by Hamish. 3, Create TeamCity project and Wiki write up Thanks, Colin From: Colin Humphrey <[email protected]mailto:[email protected]> Hi Marcus, Thank you for your time before. As discussed there are several steps to try with TeamCity integration / Magentys Maven Project. 1, Verify presence of Magentys/TAF TMW Teamcity Server and if its cloneable. 2, Of the two links below sent by Hamish. 3, Create TeamCity project Colin Humphrey [TMW Unlimited] T +44 (0)20 7751 5447tel:%2B44%20%280%2920%207751%205447 | M As part of the next phase of our development, we are now TMW Unlimited with a broader range of services and an even more sophisticated offering. Database Marketing Award DMA Awards Webby Awards Nominee This email is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this email, please notify the sender by replying to this email. If you are not the intended recipient, please delete this email and do not use, disclose, copy, print or rely on the email in any manner. To the extent permitted by law, Tullo Marshall Warren Limited does not accept or assume any liability, responsibility or duty of care for any use of or reliance on this email by anyone, other than the intended recipient to the extent agreed in the relevant contract for the matter to which this email relates (if any). From: Ross Rowe <[email protected]mailto:[email protected]> Hi again, just tried TeamCity 9.0.4, and the sample project seemed to run On Mon, Jun 8, 2015 at 8:13 PM, chumphreyTMW <[email protected]mailto:[email protected]>
— |
Hi Colin, yes if a single browser is selected, then the SAUCE_ONDEMAND_BROWSERS environment variable doesn't currently get populated, only the SELENIUM_* environment variable get populated. I've updates the plugin to ensure that the SAUCE_ONDEMAND_BROWSERS environment variable always gets populated, which is available in version 1.32 (available from https://repository-saucelabs.forge.cloudbees.com/release/com/saucelabs/teamcity/sauceplugin/1.32/sauceplugin-1.32.zip). With regards to the result tab, the plugin will display the Sauce jobs that have been associated with the TeamCity build. This association can be performed by including the following output in the build output of your build: SauceOnDemandSessionID=SESSION_ID job-name=JOB_NAME There's some further information available on how to extract the session id contained at https://docs.saucelabs.com/ci-integrations/teamcity/#output-sauce-session-id As of version 1.32, you can also link the job to the Team City build by setting the 'build' capability (using the value of the SAUCE_TC_BUILDNUMBER environment variable) |
Thanks Ross, That's great advice. I'll look at that shortly. Have a great day. Regards, C From: Ross Rowe [[email protected]] Hi Colin, yes if a single browser is selected, then the SAUCE_ONDEMAND_BROWSERS environment variable doesn't currently get populated, only the SELENIUM_* environment variable get populated. I've updates the plugin to ensure that the SAUCE_ONDEMAND_BROWSERS environment variable always gets populated, which is available in version 1.32 (available from https://repository-saucelabs.forge.cloudbees.com/release/com/saucelabs/teamcity/sauceplugin/1.32/sauceplugin-1.32.zip). With regards to the result tab, the plugin will display the Sauce jobs that have been associated with the TeamCity build. This association can be performed by including the following output in the build output of your build: SauceOnDemandSessionID=SESSION_ID job-name=JOB_NAME There's some further information available on how to extract the session id contained at https://docs.saucelabs.com/ci-integrations/teamcity/#output-sauce-session-id As of version 1.32, you can also link the job to the Team City build by setting the 'build' capability (using the value of the SAUCE_TC_BUILDNUMBER environment variable) � Colin Humphrey [TMW Unlimited] T +44 (0)20 7751 5447 | M As part of the next phase of our development, we are now TMW Unlimited with a broader range of services and an even more sophisticated offering. Database Marketing Award DMA Awards Webby Awards Nominee This email is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this email, please notify the sender by replying to this email. If you are not the intended recipient, please delete this email and do not use, disclose, copy, print or rely on the email in any manner. To the extent permitted by law, Tullo Marshall Warren Limited does not accept or assume any liability, responsibility or duty of care for any use of or reliance on this email by anyone, other than the intended recipient to the extent agreed in the relevant contract for the matter to which this email relates (if any). |
Hi Again, I thought I’d quickly get in touch and confirm that in principle I understand what needs to be done however If at all possible could you be a little more step driven in outlining how to get the values into the build output. Thanks again and kind regards, Colin From: Ross Rowe <[email protected]mailto:[email protected]> Hi Colin, yes if a single browser is selected, then the SAUCE_ONDEMAND_BROWSERS environment variable doesn't currently get populated, only the SELENIUM_* environment variable get populated. I've updates the plugin to ensure that the SAUCE_ONDEMAND_BROWSERS environment variable always gets populated, which is available in version 1.32 (available from https://repository-saucelabs.forge.cloudbees.com/release/com/saucelabs/teamcity/sauceplugin/1.32/sauceplugin-1.32.zip). With regards to the result tab, the plugin will display the Sauce jobs that have been associated with the TeamCity build. This association can be performed by including the following output in the build output of your build: SauceOnDemandSessionID=SESSION_ID job-name=JOB_NAME There's some further information available on how to extract the session id contained at https://docs.saucelabs.com/ci-integrations/teamcity/#output-sauce-session-id As of version 1.32, you can also link the job to the Team City build by setting the 'build' capability (using the value of the SAUCE_TC_BUILDNUMBER environment variable) — Colin Humphrey [TMW Unlimited] T +44 (0)20 7751 5447 | M As part of the next phase of our development, we are now TMW Unlimited with a broader range of services and an even more sophisticated offering. Database Marketing Award DMA Awards Webby Awards Nominee This email is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this email, please notify the sender by replying to this email. If you are not the intended recipient, please delete this email and do not use, disclose, copy, print or rely on the email in any manner. To the extent permitted by law, Tullo Marshall Warren Limited does not accept or assume any liability, responsibility or duty of care for any use of or reliance on this email by anyone, other than the intended recipient to the extent agreed in the relevant contract for the matter to which this email relates (if any). |
There's a tutorial on using the TeamCity plugin at https://docs.saucelabs.com/ci-integrations/teamcity, but basically the plugin will look at the output of your build (ie, the text that's written to the build log) and try to find output lines with the 'SauceOnDemandSessionID' format, and for each matching line, will invoke the Sauce REST API to store the team city build number against the Sauce job. If you're using Java, then the easiest way to output the line is to write the output via System.out.println() as per https://docs.saucelabs.com/ci-integrations/teamcity/#output-sauce-session-id. You should also be able to associate the TeamCity build number with the Sauce job by adding the following code to your DesiredCapabilities creation (again using Java as an example):
However, if you're using the sample code that's included with this project, then the SauceOnDemandTestWatcher variable (which is included in SauceOnDemandTest) should already be including the correct output to the stdout - can you let me know if your tests are using the SauceOnDemandTestWatcher, and if so, whether the SauceOnDemandSessionID is included in your build output? |
Hi Ross, I just noticed this email was sitting in drafts and did not get sent. See my responses inline in orange below. Thanks, Colin From: Ross Rowe <[email protected]mailto:[email protected]> There's a tutorial on using the TeamCity plugin at https://docs.saucelabs.com/ci-integrations/teamcity, but basically the plugin will look at the output of your build (ie, the text that's written to the build log) and try to find output lines with the 'SauceOnDemandSessionID' format, and for each matching line, will invoke the Sauce REST API to store the team city build number against the Sauce job. If you're using Java, then the easiest way to output the line is to write the output via System.out.println() as per https://docs.saucelabs.com/ci-integrations/teamcity/#output-sauce-session-id. You should also be able to associate the TeamCity build number with the Sauce job by adding the following code to your DesiredCapabilities creation (again using Java as an example): capabilities.setCapability("build", System.getenv("SAUCE_TC_BUILDNUMBER")); However, if you're using the sample code that's included with this project, then the SauceOnDemandTestWatcher variable (which is included in SauceOnDemandTest) should already be including the correct output to the stdout - can you let me know if your tests are using the SauceOnDemandTestWatcher, and if so, Yes whether the SauceOnDemandSessionID is included in your build output? Yes — Colin Humphrey [TMW Unlimited] T +44 (0)20 7751 5447 | M As part of the next phase of our development, we are now TMW Unlimited with a broader range of services and an even more sophisticated offering. Database Marketing Award DMA Awards Webby Awards Nominee This email is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this email, please notify the sender by replying to this email. If you are not the intended recipient, please delete this email and do not use, disclose, copy, print or rely on the email in any manner. To the extent permitted by law, Tullo Marshall Warren Limited does not accept or assume any liability, responsibility or duty of care for any use of or reliance on this email by anyone, other than the intended recipient to the extent agreed in the relevant contract for the matter to which this email relates (if any). |
Okay, in that case it's probably worth raising a support request with Sauce Labs (requesting that the ticket get assigned to me), so that I can take a closer look at the Sauce jobs which were run. At least in my environment, when running this sample project with TeamCity 9.0.4, the Sauce Labs Results tab is correctly populated with the tests which were run, without me having to make any modifications to the test code. |
Again Ross, Thanks for the confirmation. That's good news. There are several options for me, get the same project installed on our internal I'll raise the request shortly. Kind regards, C From: Ross Rowe [[email protected]] Okay, in that case it's probably worth raising a support request with Sauce Labs (requesting that the ticket get assigned to me), so that I can take a closer look at the Sauce jobs which were run. At least in my environment, when running this sample project with TeamCity 9.0.4, the Sauce Labs Results tab is correctly populated with the tests which were run, without me having to make any modifications to the test code. — Colin Humphrey [TMW Unlimited] T +44 (0)20 7751 5447 | M As part of the next phase of our development, we are now TMW Unlimited with a broader range of services and an even more sophisticated offering. Database Marketing Award DMA Awards Webby Awards Nominee This email is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this email, please notify the sender by replying to this email. If you are not the intended recipient, please delete this email and do not use, disclose, copy, print or rely on the email in any manner. To the extent permitted by law, Tullo Marshall Warren Limited does not accept or assume any liability, responsibility or duty of care for any use of or reliance on this email by anyone, other than the intended recipient to the extent agreed in the relevant contract for the matter to which this email relates (if any). |
Hi Ross, I have created the support ticket. Just to be absolutely sure. You ran the packaged/zipped up code I just want to make sure that it was not respoitory / sauce-ci-java-demo which you ran. I do not want to Thanks, C From: Ross Rowe <[email protected]mailto:[email protected]> Okay, in that case it's probably worth raising a support request with Sauce Labs (requesting that the ticket get assigned to me), so that I can take a closer look at the Sauce jobs which were run. At least in my environment, when running this sample project with TeamCity 9.0.4, the Sauce Labs Results tab is correctly populated with the tests which were run, without me having to make any modifications to the test code. — Colin Humphrey [TMW Unlimited] T +44 (0)20 7751 5447 | M As part of the next phase of our development, we are now TMW Unlimited with a broader range of services and an even more sophisticated offering. Database Marketing Award DMA Awards Webby Awards Nominee This email is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this email, please notify the sender by replying to this email. If you are not the intended recipient, please delete this email and do not use, disclose, copy, print or rely on the email in any manner. To the extent permitted by law, Tullo Marshall Warren Limited does not accept or assume any liability, responsibility or duty of care for any use of or reliance on this email by anyone, other than the intended recipient to the extent agreed in the relevant contract for the matter to which this email relates (if any). |
No, I ran the sample project against my TeamCity instance, I haven't received any attachments (I don't think Github handles adding attachments to issues) - if you attach your sample files to the support issue, then we can take a look at your code to see where the issue might be |
I will do that. Were you able to view the screen casts. I am also able to successfully get data back from your sample project I’ll attach to the ticket as soon as possible. Thanks, C From: Ross Rowe <[email protected]mailto:[email protected]> No, I ran the sample project against my TeamCity instance, I haven't received any attachments (I don't think Github handles adding attachments to issues) - if you attach your sample files to the support issue, then we can take a look at your code to see where the issue might be — Colin Humphrey [TMW Unlimited] T +44 (0)20 7751 5447 | M As part of the next phase of our development, we are now TMW Unlimited with a broader range of services and an even more sophisticated offering. Database Marketing Award DMA Awards Webby Awards Nominee This email is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this email, please notify the sender by replying to this email. If you are not the intended recipient, please delete this email and do not use, disclose, copy, print or rely on the email in any manner. To the extent permitted by law, Tullo Marshall Warren Limited does not accept or assume any liability, responsibility or duty of care for any use of or reliance on this email by anyone, other than the intended recipient to the extent agreed in the relevant contract for the matter to which this email relates (if any). |
Yes, I just checked the screencast display in my TeamCity environment, and On Thu, Jun 11, 2015 at 6:56 PM, chumphreyTMW [email protected]
|
Resent as first email failed on account of file size, will send link to cload based file share shortly.Hi Ross, Thanks for the support once more. Using the repo here: https://github.com/rossrowe/sauce-ci-java-demo/ Please find below the answers to your questions. 1 Am I using SauceOnDemandTestWatcher: 2, Is the SauceOnDemandSessionID output in the logs. In a nutshell the SauceLabs Results Tab is working. However video does not appear to play. Regards, C From: Ross Rowe <[email protected]mailto:[email protected]> There's a tutorial on using the TeamCity plugin at https://docs.saucelabs.com/ci-integrations/teamcity, but basically the plugin will look at the output of your build (ie, the text that's written to the build log) and try to find output lines with the 'SauceOnDemandSessionID' format, and for each matching line, will invoke the Sauce REST API to store the team city build number against the Sauce job. If you're using Java, then the easiest way to output the line is to write the output via System.out.println() as per https://docs.saucelabs.com/ci-integrations/teamcity/#output-sauce-session-id. You should also be able to associate the TeamCity build number with the Sauce job by adding the following code to your DesiredCapabilities creation (again using Java as an example): capabilities.setCapability("build", System.getenv("SAUCE_TC_BUILDNUMBER")); However, if you're using the sample code that's included with this project, then the SauceOnDemandTestWatcher variable (which is included in SauceOnDemandTest) should already be including the correct output to the stdout - can you let me know if your tests are using the SauceOnDemandTestWatcher, and if so, whether the SauceOnDemandSessionID is included in your build output? — Colin Humphrey [TMW Unlimited] T +44 (0)20 7751 5447 | M As part of the next phase of our development, we are now TMW Unlimited with a broader range of services and an even more sophisticated offering. Database Marketing Award DMA Awards Webby Awards Nominee This email is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this email, please notify the sender by replying to this email. If you are not the intended recipient, please delete this email and do not use, disclose, copy, print or rely on the email in any manner. To the extent permitted by law, Tullo Marshall Warren Limited does not accept or assume any liability, responsibility or duty of care for any use of or reliance on this email by anyone, other than the intended recipient to the extent agreed in the relevant contract for the matter to which this email relates (if any). |
As before, due to file size limits recent emails have not been gettinh through. Hi Ross, Thank you for the feedback, just checking do you want these raised via github or your Test session id data and a job-name are output, CURL COMMAND curl -u magentys_tmw:cc2d5e56-a062-4a1c-a6f1-f143f46f2eff [{"id": "ba319817f84e478ab53835490c50df69"}, {"id": "3ddee692b785456983b67bed20de6d35"}, {"id": "38f51d72778f43ec94a55ccf38ed1643"}, {"id": "d0b9577f8e9743748618605347ad81ba"}, {"id": "89eac82b463d4451b2d99605e8856b84"}, {"id": "52e3a58965b64a88854c266840db335d"}, {"id": "d1042e5fda4d48c4913d67675ed1b351"}, {"id": "512cb5894ba249ebbc5a808a4cbcae54"}, {"id": "480970a634384fbcade93d4f476b8855"}, {"id": "b0d69abebb834a25b9de4e76308b3308"}]chumphrey:diageo-the-bar chumphrey$ SCREENSHOT There does appear to be a correlate between the recent session ids. These appear from the CURL command as well as the screen capture. Please see below. 89eac82b463d4451b2d99605e8856b84 LOG OUTPUT Kind regards, C From: Ross Rowe <[email protected]mailto:[email protected]> Yes, I just checked the screencast display in my TeamCity environment, and On Thu, Jun 11, 2015 at 6:56 PM, chumphreyTMW <[email protected]mailto:[email protected]>
— |
Please can you confirm if this is the correct email for yourself? From: Colin Humphrey <[email protected]mailto:[email protected]> As before, due to file size limits recent emails have not been gettinh through. Hi Ross, Thank you for the feedback, just checking do you want these raised via github or your Test session id data and a job-name are output, CURL COMMAND curl -u magentys_tmw:cc2d5e56-a062-4a1c-a6f1-f143f46f2eff \https://saucelabs.com/rest/v1/magentys_tmw/jobs?limit=10 [{"id": "ba319817f84e478ab53835490c50df69"}, {"id": "3ddee692b785456983b67bed20de6d35"}, {"id": "38f51d72778f43ec94a55ccf38ed1643"}, {"id": "d0b9577f8e9743748618605347ad81ba"}, {"id": "89eac82b463d4451b2d99605e8856b84"}, {"id": "52e3a58965b64a88854c266840db335d"}, {"id": "d1042e5fda4d48c4913d67675ed1b351"}, {"id": "512cb5894ba249ebbc5a808a4cbcae54"}, {"id": "480970a634384fbcade93d4f476b8855"}, {"id": "b0d69abebb834a25b9de4e76308b3308"}]chumphrey:diageo-the-bar chumphrey$ SCREENSHOT There does appear to be a correlate between the recent session ids. These appear from the CURL command as well as the screen capture. Please see below. 89eac82b463d4451b2d99605e8856b84 LOG OUTPUT Kind regards, C From: Ross Rowe <[email protected]mailto:[email protected]> Yes, I just checked the screencast display in my TeamCity environment, and On Thu, Jun 11, 2015 at 6:56 PM, chumphreyTMW <[email protected]mailto:[email protected]>
— |
Yes, please raise a support ticket for the screencast issue through support.saucelabs.com. |
Thanks Ross, Done. Please also confirm your personal email. I’d like to send you a link to a resource containing the latest Kind regards, Colin From: Ross Rowe <[email protected]mailto:[email protected]> Yes, please raise a support ticket for the screencast issue through support.saucelabs.com. — Colin Humphrey [TMW Unlimited] T +44 (0)20 7751 5447 | M As part of the next phase of our development, we are now TMW Unlimited with a broader range of services and an even more sophisticated offering. Database Marketing Award DMA Awards Webby Awards Nominee This email is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this email, please notify the sender by replying to this email. If you are not the intended recipient, please delete this email and do not use, disclose, copy, print or rely on the email in any manner. To the extent permitted by law, Tullo Marshall Warren Limited does not accept or assume any liability, responsibility or duty of care for any use of or reliance on this email by anyone, other than the intended recipient to the extent agreed in the relevant contract for the matter to which this email relates (if any). |
Yep, email address is correct, although it's probably best if you include On Thu, Jun 11, 2015 at 9:42 PM, chumphreyTMW [email protected]
|
Hello from Sauce Labs Support, @chumphreyTMW! The screencast issue in TeamCity should now be fixed. If you could confirm this, we'd greatly appreciate it. Thanks a bunch! |
Please can you confirm if the tutorial here on the link below is compatible with TeamCity 9.0.4. 32407 ?
https://docs.saucelabs.com/ci-integrations/teamcity/#teamcity-configuration-for-a-java-based-project
The text was updated successfully, but these errors were encountered: