How To Take Screenshot For Failed Test Cases In Cucumber



Automatically take a screenshot on failure of a Cucumber scenario If you are using Cucumber to automate testing your web application, it can be useful to include a screenshot in Cucumber's report whenever a scenario fails. If you want to copy test cases instead of moving them, simply press the Shift key before and during the operation. I hope that this article makes it clear how to take screenshots in your automation projects. I'm trying to take screenshot when test fails, after configuring screenshotPath in wdio. One thing that makes iPhone and iPad special is the Messages app. *i need to add link from failed test cases to that screenshot in my report*? say if i click and failed test cases link in report, it should redirected to corresponding screenshot. Example of how to use the JUnit TestWatcher Class to check if a Test Case has failed or not, and if it has take a screenshot with Selenium WebDriver. Learn how to download and install Ubuntu Linux on Windows 10 in such a way that it won’t harm Windows. png' # Or use some GUID library to make a unique filename - scenario names are not guaranteed to be unique. Programming knowledge is required to set up the framework. Here are some of the tips to help you fix Galaxy S7 battery issues, which will also work on Galaxy S7 edge. Log method to log the screenshot into the extent reports. JUnit 5 is the next generation of JUnit. Still others think a more wholesale transformation of how we buy and consume products is needed. Check this post for Latest Version of Extent Reports. Then /^I take a screenshot$/ do page. trim(), actaul. Once you become accustomed to good automation and. Submit and track defects with full evidence (logs, screenshots, comments, etc. My point is exactly that the day will never arrive. Your AncestryDNA kit includes full instructions, a saliva collection tube, and a pre-paid return mailer (so you don't have additional costs to return your DNA. As is the case with. Breaking news and analysis from TIME. September 2009. This information will logged in the report with time stamp. Jasmine's beforeAll() hook is often useful for sharing test setup - either to reduce test run-time or simply to make for more focused test cases and it reduces lines of code too!! Disadvantages: There is less documentation available for finding information about setting up your css in the case of having multiple ids for one element. A home’s water heater gets used every single day. This section describes how to configure, package, and upload your Appium Java JUnit tests for Android to Device Farm. How to Use the New Snapchat Like a Pro. When ever any important functions need to be tested, we should take screenshot after testing. Prior to that, the screenshots are only available for 15 minutes. id("test")). This works in most cases, where the issue is originated due to a system corruption. Export the test case as JUnit 4 (WebDriver) and save the file as SearchExportedFromIDETest. However, the tray table is annoyingly fixed in place. assertEquals(expected. You can use the TestWatchman class which is part of JUnit to get the test case name, as well as the status, so you could take screenshots only on failure. work always fail in Nigeria. There are 10 Expired Test subjects in each room. Then /^I take a screenshot$/ do page. needed more often, but they become impractical when you need several dozens. More than 6,000 member institutions and organizations drive the College Board’s mission. Submit and track defects with full evidence (logs, screenshots, comments, etc. To copy or move test cases and entire sections within a test suite, you can drag & drop cases and sections. Please upload a file larger than 100 x 100 pixels; We are experiencing some problems, please try again. Here's how to claim the credit and make solar pay its cost back quickly. Determine when you will take the test. Selenium Webdriver with Cucumber BDD Automation Framework. You can only upload photos smaller than 5 MB. You do not require to build the whole project again. People use it for arthritis, multiple sclerosis (MS), and other conditions. Capturing ScreenShots Failed Selenium Test. The first is ethical. In cucumber, we have a similar feature called Tags to group the features. Managing these dependencies & Setting up remote slaves are time-consuming for big applications which has thousands of test cases to run on a daily basis on a multiple slave machines. Using the Protractor Automation Tool to Test AngularJS Applications One of the applications that we are working on is being built using pure AngularJS. What cucumber meant to be, How people should use Cucumber correctly, and so on. When ever any important functions need to be tested, we should take screenshot after testing. By looking at the report, you will come to know what the status of the project is. Selenium a Web based automation testing tool that automates anything and everything available on a Web page. Run a free website speed test from multiple locations around the globe using real browsers (IE and Chrome) and at real consumer connection speeds. Afterwards we’re implementing the rest until we seen the green light ;) An interesting feature is the ability to map the data table into a collection of a mappable element. Welcome to the Webnus Support Forum. java" - includes all of its subdirectories and all Java filenames that end with "Test". Here's how to claim the credit and make solar pay its cost back quickly. Under a then-newly passed California law, Moore was tried as an adult; in September of 1997, he was found guilty of murder and sentenced to 26 years to life. Using this method Ubuntu Linux will only run when you tell it to and it doesn’t require any special partitioning of your disks. Take control of steel beasts and battle through historic locations where strategy means victory. RTA is a fully automated approach that learns how a live SAP production system operates and uses this data to automatically validate the impact of change. ) The Kosmo 2. After executing the test cases, the ExtentReport design will look like this. In this case, the default is John Smith. When you get to the point of putting the bezel back on,. It may be damaged or use a file format that Preview doesn't recognize" Currently, I am saving all the screenshots under /screenshot/ directory using calabash's screenshot_embed() but instead i want to have all screenshots for every test in the Report. Approximately 50 minutes after take-off, the main meal service began. IIS passes the Negotiate security header when Windows Integrated authentication is used to authenticate client requests. This includes focusing on Java 8 and above, as well as enabling many different styles of testing. Learn how to do anything with wikiHow, the world's most popular how-to website. How to install protractor: For Beginners. How to take ScreenShot of failed test case using ITestListener Interface? 8 July Prakash Narkhede Uncategorized ITestListener , TestNG Taking Screen shot of all the test cases may create a memory issue, because we will be running the automation suite multiple times. This is a great starting point to learn how to use Sakuli together with Maven and Docker. So right now we have a scenario that is ultimately pending, but with one passed step. Cucumber adoption in many teams starts off on a great note – with Test Automation being one of the main focus using Cucumber [Yeah, we all know that Cucumber’s purpose is to help collaboration between the 3 amigos more than test automation]. If being able to read cucumber html reports with screenshots in IE is really important to you, you could always write each image to disk: png = @browser. Here are some of the tips to help you fix Galaxy S7 battery issues, which will also work on Galaxy S7 edge. This was a huge problem to me because I used code coverage reports every day. Read more about Membership. After hooks can be used to clean up any state you’ve altered during your scenario, or to check the status of the scenario and act accordingly. Products take effect in 60 minutes and lasts for 6 hours. Many vets will also analyse your cat's urine (urinalysis). Others we can only hope exist within ourselves. You can use canned steps (pre-defined) to take screenshot. I used above code and other code example and found out driver take screen shot after log out to the system. findElement(BY. Since we are doing anything in this test, let’s change locator to some invalid value for search() test case. Its a real handy tool to rapidly setup fake REST API for testing your framework. Still others think a more wholesale transformation of how we buy and consume products is needed. If you liked it, please share it with your friends. Test-driven development (TDD) is a development technique where you must first write a test that fails before you write new functional code. Traceroute is a command which can show you the path a packet of information takes from your computer to one you specify. If that’s the case, try playing online when fewer people are using the internet. This section describes how to configure, package, and upload your Appium Java JUnit tests for Android to Device Farm. “It would appear highly. Selenium a Web based automation testing tool that automates anything and everything available on a Web page. If you are using Cucumber together with a Selenium WebDriver, which can capture screens, it’s easy as pie. World of Tanks is an epic online multiplayer game featuring authentic tanks from the mid-20th century. Capture screenshot for failed tests in testNG will discuss about how to take a screenshot when a test case fails while executing the test suite. Though, you can quickly generate the TestNG. When my test case fails, especially on our build server, I want to take a picture / screenshot of the screen to help me debug what happened later on. Another way of capturing screenshot of failed test cases using Selenium WebDriver is to use ITestResult Interface. The only difference here is you will have to use a loop or index-based logic to fetch values from different rows of data. News and reviews for Apple products, apps, and rumors. The build lifecycle is simple enough to use, but when you are constructing a Maven build for a project, how do you go about assigning tasks to each of those build phases? Packaging The first, and most common way, is to set the packaging for your project via the equally named POM element. The advantage to running a browser, is you can save screenshots of failed tests which can help the testers and developers quickly see what has gone wrong. The screenshot will give the information about on which screen the script got failed during the execution. Why HDCP Causes Errors on Your HDTV, and How to Fix It Jason Fitzpatrick @jasonfitzpatric Updated March 31, 2018, 10:10pm EDT HDCP is an anti-piracy protocol built right into the HDMI cable standard, but it doesn’t actually work very well, and breaks the viewing experience. While executing the defined UAT test cases you need to make sure to have a workflow in place which deals with bugs, issues, and other problems. In this way, user acceptance testing will be more realistic as all users will execute the test cases related to their user role only. It is really easy to use, user just need to select a test suite and specify a destination folder and file name. How to take screenshot of failed test cases in Selenium Webdriver - Duration: 12:04. In these cases, you may have narrow spots called strictures that make it difficult for the pill to pass. Very strange indeed. However, the tray table is annoyingly fixed in place. py so you can take screenshot with any failed test and find name of the method """ if. Important: Do not click Activate Now or you will activate the account. If this is the case, the risk of HIV transmission if a condom breaks is extremely unlikely. How to install protractor: For Beginners. How to export HP Quality Center test cases to excel file? Any one can help us to do this? Thanks I find a - 947428. The results become even more complex, since we can execute a test that contains test cases with parameters (using the @ symbol to denote the parameters in the test steps) and this will result in multiple iterations of the same test steps. Hi All, I am new [typical] to QTP and I can't get the screenshot to work. 2 SSD, you’ll need to shut your computer down, unplug your power supply, and physically take the M. The results of running the test cases have to be accumulated somewhere. In depth Course on Selenium WebDriver Trusted by 2,00,000+ students, Includes many Live Projects & End 2 End Frameworks. Screenshots of Failing Cucumber Scenarios. Here are some of the tips to help you fix Galaxy S7 battery issues, which will also work on Galaxy S7 edge. In the screenshot above you see the 3 assertions added to a SOAP Request TestStep and they all failed. @pranavdixit: Facebook failed the Rohingya in Myanmar. java" - includes all of its subdirectories and all Java filenames that start with "Test". Now simply right-click on the. Successful logins for SQL Server 2005 and 2008 will have an event ID of 18454 and failed logins will have an event ID of 18456. The test case HTML file is responsible for setting the base URL. This may take anywhere from 10 minutes to over an hour, depending on the number of Outlook files you have. What is Cucumber Reports? We do test execution so as to recognize the stability of a product, so be it guide check or an automatic take a look at, it is very essential to generate a concise document that can depict the stability of a product. Eligible sophomores, juniors and seniors who register for the ACT® test between 9. The cooks in the Test Kitchen meticulously prepare each recipe the food editors send their way. When we execute huge number of test scripts, and if some test fails, we need to check why the test has failed. Open the Disk Utility app. To check that your sound and microphone are working properly in Skype, you can make a test call to our friendly assistant Echo. One improvement could be taking a screenshot of the failed test which we will explain here. You will have the knowledge of designing selenium framework. In this scheme, the operating system retrieves data from secondary storage in same-size blocks called pages. COM's practical food and fitness tools, expert resources and an engaged community. Cucumber report doesn't provide screen shot directly embedded into report. The genomes of different species with the same trait may also be compared in order to identify a gene, as was the case while developing Golden Rice [9]. findElement(By. The screenshot will give the information about on which screen the script got failed during the execution. After the failed Tet-2 campaign, Mandella & Potter, both lose limbs, they shipped to the military hospital on Heaven for rehabilitation and limb regeneration. This step-by-step article describes how to use service principal names (SPNs) when you configure Web applications that are hosted on IIS. There's no method (as far as I can tell) to fire a function when the test fails. This is why we set the correct f format: f6. Which is not effective way of writing tests in the real world. How to export HP Quality Center test cases to excel file? Any one can help us to do this? Thanks I find a - 947428. Taking screenshots during testing is often considered a good practice. Introduction. Screenshots serves an important role of acting as an evidence of any tests performed. Let’s check out what this looks like in the report, particularly given how I described the reports in the first post. This guide instructs you to remove the front panel assembly; this is intended to prevent damage to the display cables. trim()); by using this method want to know whether my test case is fail or pass? In this method I am giving expected & actual string if both are same then it ‘PASS’ & if both are mismatch then my test case is fail that I want to do. WebDriver provides TakeScreenshot interface to capture screenshot of a web page. Locate Element. We may use this to take screenshot after fail a test case or, to validate a test from previous reference or, to keep log of test results. If the code is bad, ideally a ticket would be opened against it, or the code immediately fixed. It is mandatory to take the screenshot for verification so that can prove also that your test case has covered certain functionality or not. A test suite, on the other hand, is only a bag for your test cases. File->Info->Account Settings->Account Settings->Change->More Settings->General->Manually control connection state->Connect with network Also below the server tab, there is a check box, uncheck that to be in online mode. You can use the TestWatchman class which is part of JUnit to get the test case name, as well as the status, so you could take screenshots only on failure. Integrating with BrowserStack. " It is always(at least in most of the cases :P) better to take screenshot of webpage when. The Expired Test Subjects will follow you outside. We discussed core Takes Screenshot interface previously to take the screenshot. AngularJS is a framework that is gaining in popularity because it extends the functionality of HTML and can be used to quick launch applications. 2016-10-14T00:00:00+02:00 2016-10-14T00:00:00+02:00 ConSol Labs [email protected] WebDriver provides TakeScreenshot interface to capture screenshot of a web page. But high potassium levels can lead to health problems. Wednesday on the day of the burn, just before the firefighters ignited the test burn. The following screenshot confirms the change in these timestamps. While executing the defined UAT test cases you need to make sure to have a workflow in place which deals with bugs, issues, and other problems. Breaking news and analysis from TIME. Number of Passed, Failed and To Do tests. Go through the door after the puzzle has been solved and go into right door (A). WebDriver - Take Screenshots on Test Case Fail. In automation, it is mandatory to take the screenshot for verification so that can prove also that your test case has covered certain functionality or not. Watch your favourite shows online, from Channel 4, E4, All 4 and Walter Presents. I was not in favor of that, because of my prior experience with the fragility of end-to-end testing. Select the report pages and individual tiles you wish to send by checking their boxes (alternatively, select them all). Excel in the screenshot below. When my test case fails, especially on our build server, I want to take a picture / screenshot of the screen to help me debug what happened later on. emailable-report. Therefore screenshot capture functionality is very useful in any automated testing activities. We will be needing dependencies of the following: Selenium-java Cobertura Cucumber-jvm-deps Cucumber-reporting Gherkin JUnit. I'm trying to take screenshot when test fails, after configuring screenshotPath in wdio. there shouldnt be any impact of this failed test case on them. Adding On and Result Analysis. png could not be opened. Now let us take a look at some more advanced and interesting features of TestNG. With Box, you get a single place to manage, secure, share and govern all of the content for your internal and external collaboration and processes. Let everything connect and then try to print again. Still others think a more wholesale transformation of how we buy and consume products is needed. The test will fail if the two snapshots do not match: either the change is unexpected, or the reference snapshot needs to be updated to the new version of the UI component. WebDriver - Take Screenshots on Test Case Fail. The technique can be used to create screen video capture software. txt and allows to rerun just those failed tests • cucumber --tags @wip: Will only run tests tagged @wip. File->Info->Account Settings->Account Settings->Change->More Settings->General->Manually control connection state->Connect with network Also below the server tab, there is a check box, uncheck that to be in online mode. By looking at the report, you will come to know what the status of the project is. Capturing ScreenShots Failed Selenium Test. Here are some of the common causes. I hope that this article makes it clear how to take screenshots in your automation projects. On test case failure take a screenshot with Selenium WebDriver Don't you think "A picture is worth a thousand words. 1) NetScaler Fail to Boot: - Check whether there is display on LCD, take a picture of the LCD. It helps us to debug and identify the problem by seeing the screenshot. Exception Handling in Selenium. Here's how to fix a broken iPhone Home button (or get it fixed), and a useful software workaround that will make life. The jury didn’t take pity. Thanks, Br, Ceco. ITestResult interface provides the test case execution status and test case name We do place the screen capture steps in a separate method using AfterMethod TestNG Annotation. Test results are displayed once the test run is complete. - The team was using flaky end-to-end tests. Please be careful that the notification may intersect with the target area. The Summary tab gives you statistics on your test run, such as the timings, the test names, the number of methods and classes, etc… Since the results are shown in a table, you can also sort on any criterion you like for easier parsing. Java JUnit WebDriver video tutorial on writing Test Rules for Failed test cases. How to fix your broken laptop screen. In our first cucumber test First Test Case in Selenium with cucumber we have hard coded the values in the step definitions. For example, we can integrate POM with TestNG/JUnit for functional Testing and at the same time with JBehave/Cucumber for acceptance testing. How to Wipe Your Computer Before You Sell It. Finally, crush all test cases so that they won't get mixed in with good brass. Automatic screenshots when test fail by Selenium Webdriver in Python case. You can only upload videos smaller than 600 MB. findElement(By. If you pass anything higher your selenium test will fail quickly with a message telling you the value is too large. js file, as show below:. A toxicology test (drug test or “tox screen”) looks for traces of drugs in your blood, urine, hair, sweat, or saliva. The online study material includes multiple choice practice quizzes and exams, case studies, definitions, slideshows, matching, and more. When a test fails during the execution, for reference we should capture screenshot, so that debugging the failures are easy. Since we are doing anything in this test, let’s change locator to some invalid value for search() test case. Task recorder will now take screenshots of the tab that has the client running. Selenium is a little bit better on screenshot though, because it gives you screenshot object in your tests and you can save it wherever you want. Screenshots. With the MethodRule of JUnit we can intercept failed unit tests before JUnit sends out the results. Search for the Echo / Sound Test Service contact. This is why we set the correct f format: f6. What cucumber meant to be, How people should use Cucumber correctly, and so on. The technology effectively removes the need for steps such as business process discovery, test script creation and test data management. Now that we have created a feature file and step definitions, we can integrate our Cucumber JS test case into BrowserStack. You can do this on Windows computers using OBS Studio, or on a Mac by using the built-in QuickTime player. He teleports random players into rooms full of Expired Test Subjects and Failed Students. Accept the terms and conditions, and then click Continue. Refresh your project and you should see a folder screenshot. For example, your credit card information can be sold for a higher price, if the thief also has your name, address, date of birth, mother’s maiden name, and three-digit security code from your credit card. How to Cucumber : Test Reporting Plugin with Maven and Java 2015-07-30 2019-05-04 Damien FREMONT IT Tutorials bdd , cucumber , java , junit , maven , reporting , test It is often useful to show the results of our tests to others people who are not developers, like managers or executive. Under a then-newly passed California law, Moore was tried as an adult; in September of 1997, he was found guilty of murder and sentenced to 26 years to life. Hi All, I have been trying to take screenshots for failed test cases. Performing parallel tasks, like making multiple http requests outside of Cypress. To download follow this link. However, the tray table is annoyingly fixed in place. Which is not effective way of writing tests in the real world. Here are some of the tips to help you fix Galaxy S7 battery issues, which will also work on Galaxy S7 edge. See other canned steps. Try for FREE. You can run simple tests or perform advanced testing including multi-step transactions, video capture, content blocking and much more. That too, if you are planning to move AWS /cloud in future, How can you set this up all programmatically? We will see how docker could help us here!!. This will take a different amount of time depending on the app size and test cases. For each test step determine whether the test failed as a result of an issue with the code or a bad test step. Place the FUSES as shown in the screenshot. Running with --screenshot will produce a file named screenshot. The problem. Screenshots serves an important role of acting as an evidence of any tests performed. ), downloading large files over the internet or playing other online video games, then you are more at risk of experiencing disconnection issues. With this test, you should see a failed step in your output. In the @AfterMethod annotation we will use ITestResult interface's getStatus() method that returns the test result and in case of failure we can use the above commands to take screenshot. Some of these can be measured by a culture's traditions. You may however both still decide to get tested for other STIs. A typical snapshot test case for a mobile app renders a UI component, takes a snapshot, then compares it to a reference snapshot file stored alongside the test. Seeding your test database. Data Driven Framework with Excel. The next step is to examine the failed (red) test steps. Task recorder will now take screenshots of the tab that has the client running. Partnership or group. You can use canned steps (pre-defined) to take screenshot. I did some research and found the JaCoCo code coverage library. The following is a screenshot of the Character test during test execution: Figure 1 Character test screen shot Display settings, such as number of vertices, edges, faces, tris and UV’s, determine the complexity of the model. Using Cucumber-JVM and Selenium WebDriver in Java for BDD. Above code is fine but still we need to enhance our code so that we can reuse. Execpt maybe a crude work-around using the ‘Run keyword if test failed’ keyword, that you could employ as a defaut test teardown at the highest suite level. If the code is bad, ideally a ticket would be opened against it, or the code immediately fixed. The above command will update Selenium standalone server and browser drivers ( Chrome Driver, Gecko Driver [firefox] etc. Maven is a project management tool that helps you build your project and manage documentation and resources. Also, the test case is linked to the bug. If that’s the case, try playing online when fewer people are using the internet. Capturing ScreenShots Failed Selenium Test. ★ Cbd Rich Oil For Breast Cancer - Dispensery Near 97236 With Cheap But Good Quality Cbd Oil What Does Hempworx Cbd Peppermint Oil Benefits Can You Gwt Into Trouble Ordering Cbd Oil Cbd Oil And Foods That Help It Can I Stop Taking Parkinsons Medication And Start Cbd Oil. This is why we set the correct f format: f6. If you must add an additional comment, you can edit your initial post. In this case, the default is John Smith. Previous Article How to Take a Screenshot of Specified Content Using Selenium Webdriver Next Article How to Read CSV Files in Selenium 2 thoughts on “ Headless Testing Using PhantomJS And Selenium Webdriver ”. WebDriver - Take Screenshots on Test Case Fail. Starting with a simple online learning tool, Quizlet today offers tools for students to make flashcards, practice spelling, play learning games, test their knowledge, collaborate with other. java file from project explorer in Eclipse. When I started using Java 7, I noticed right away that the Cobertura Maven plugin doesn’t support it. My point is exactly that the day will never arrive. If you agree, I shall test some of the facets within you. 0 for Mac OS X. If you still need to write step definition. Set up mock responses independently for each test to ensure test data is encapsulated with each test, easily maintained, and avoid tests dependent on precursor. Note in the screen shot above that the search also works on parameters provided by @DataProvider. She will prompt you to record a message, and then play it back for you – so you’ll know right away if your sound is working. How to take ScreenShot of failed test case using ITestListener Interface? 8 July Prakash Narkhede Uncategorized ITestListener , TestNG Taking Screen shot of all the test cases may create a memory issue, because we will be running the automation suite multiple times. The cooks in the Test Kitchen meticulously prepare each recipe the food editors send their way. Welcome to the Murder, She Wrote Walkthrough!. The problem. We don't want to go that far. If your results displayed are appropriate for VoIP, then you can safely say that your connection is not to blame. For example, your credit card information can be sold for a higher price, if the thief also has your name, address, date of birth, mother’s maiden name, and three-digit security code from your credit card. Maven is a project management tool that helps you build your project and manage documentation and resources. How to Use the New Snapchat Like a Pro. We have discussed about simple way of taking a screen shot earlier. there shouldnt be any impact of this failed test case on them. From the Selenium IDE, you can override the base URL for a test case. JENKINS-22406 Show tags for test cases JENKINS-21739 Links to robot framework report files are invalid when inside a folder JENKINS-21644 Aggregated results in a multimodule maven project displays only values of the last submodule. So that I created this issue to ask opinion of implementation. If a test step fails in the try block then it goes to the catch block and capture a screenshot of the web page. work always fail in Nigeria. Testing every step, they ensure the amounts, equipment, temperature and method are accurate. However, since we are writing an automated test, we want to write our script as modular as possible to be able to reuse parts of it in future scenarios. 1 and later is the phone's Power button and the Volume Up button. For all those people who find it more convenient to bother you with their question rather than search it for themselves. With this test, you should see a failed step in your output. The keyword to run you would then have to write yourself and would have to contain some small and simple logic to re-run a current test case upon failure. Most of us don’t give this important appliance a second thought, but when your hot showers last less than two minutes, it may be an indicator that your hot water heater is starting to fail. How to do UI automation with locked screen. ) The Kosmo 2. This folder would contain the screenshot of the failed test case. Go ahead and restart the wireless router by unplugging it and then waiting 30 seconds and then plugging it back in. In cucumber, we have a similar feature called Tags to group the features. Assertions are for stopping the test. On test case failure take a screenshot with Selenium WebDriverOn test case failure take a screenshot with Selenium WebDriver Don't you think "A picture is worth a thousand words. Unrelated to that, the opening brace before the feature path would also cause cucumber not to find the feature. If you must add an additional comment, you can edit your initial post. You can only upload photos smaller than 5 MB. What cucumber meant to be, How people should use Cucumber correctly, and so on. The federal government is willing to give you 30% of the costs you pay to install solar back as a credit on next year's taxes.