<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: login in integration testing in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/login-in-integration-testing/m-p/81277#M51242</link>
    <description>&lt;P class=""&gt;I normally find people overestimate integration testing in general, and would be better off writing lots of unit tests that support you reliably deploying straight to prod.&lt;/P&gt;&lt;P class=""&gt;I reliably find that an app redesigned to be thoroughly unit tested stops relying on its existing integration tests.&lt;/P&gt;&lt;P class=""&gt;What kind of assurances are you looking for from integration testing? Does your integration environment really reflect the real world? How much lead time do your integration tests add to the smallest possible &lt;FONT color="#000000"&gt;&lt;A href="https://azar.pro" target="_blank" rel="noopener"&gt;azar&lt;/A&gt; &lt;A href="https://echat.date" target="_blank" rel="noopener"&gt;echa&lt;/A&gt;&lt;A href="https://chatspin.download" target="_blank" rel="noopener"&gt;tspin&lt;/A&gt;&lt;/FONT&gt; release?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 11:24:07 GMT</pubDate>
    <dc:creator>FilembarEliJeev</dc:creator>
    <dc:date>2022-02-16T11:24:07Z</dc:date>
    <item>
      <title>login in integration testing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/login-in-integration-testing/m-p/81258#M51233</link>
      <description>&lt;P&gt;Can I test clicking a button and going to the next screen?&lt;/P&gt;&lt;P&gt;I think this is impossible in integration testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;final signInText = find.text('signin');&lt;BR /&gt;expect(signInText, findsWidgets); // OK&lt;BR /&gt;final textField = find.byType(TextFormField);&lt;BR /&gt;await tester.enterText(textField.at(0), 'abc@gmail.com');&lt;BR /&gt;await tester.enterText(textField.at(1), '1234');&lt;BR /&gt;await tester.tap(find.byType(RaisedButton).first);&lt;BR /&gt;await tester.pump();&lt;BR /&gt;var indicator = find.byType(CircularProgressIndicator);&lt;BR /&gt;expect(indicator, findsOneWidget); // OK&lt;/P&gt;&lt;P&gt;// I have to wait 2-3 seconds for the login to complete.&lt;BR /&gt;sleep(Duration(seconds: 10));// FAIL&lt;BR /&gt;await Future.delayed(Duration(seconds: 10));// NEVER ENDING&lt;BR /&gt;await tester.pumpAndSettle();// TIMEOUT&lt;BR /&gt;expect('Next Screen Text', findsOneWidget);// NOT FOUND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If I call sleep or Future.dealeyed function, I can't wait 2-3 seconds and it fails.&lt;/P&gt;&lt;P&gt;I can't find any examples of testing login code.&lt;/P&gt;&lt;P&gt;Can I test moving to the next screen after waiting 2-3 seconds until login is done after clicking the button?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 10:55:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/login-in-integration-testing/m-p/81258#M51233</guid>
      <dc:creator>BettyRNorahDeni</dc:creator>
      <dc:date>2022-02-15T10:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: login in integration testing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/login-in-integration-testing/m-p/81277#M51242</link>
      <description>&lt;P class=""&gt;I normally find people overestimate integration testing in general, and would be better off writing lots of unit tests that support you reliably deploying straight to prod.&lt;/P&gt;&lt;P class=""&gt;I reliably find that an app redesigned to be thoroughly unit tested stops relying on its existing integration tests.&lt;/P&gt;&lt;P class=""&gt;What kind of assurances are you looking for from integration testing? Does your integration environment really reflect the real world? How much lead time do your integration tests add to the smallest possible &lt;FONT color="#000000"&gt;&lt;A href="https://azar.pro" target="_blank" rel="noopener"&gt;azar&lt;/A&gt; &lt;A href="https://echat.date" target="_blank" rel="noopener"&gt;echa&lt;/A&gt;&lt;A href="https://chatspin.download" target="_blank" rel="noopener"&gt;tspin&lt;/A&gt;&lt;/FONT&gt; release?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 11:24:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/login-in-integration-testing/m-p/81277#M51242</guid>
      <dc:creator>FilembarEliJeev</dc:creator>
      <dc:date>2022-02-16T11:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: login in integration testing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/login-in-integration-testing/m-p/81408#M51296</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/57898"&gt;@BettyRNorahDeni&lt;/a&gt;&amp;nbsp;wrote:&amp;nbsp;&lt;FONT color="#FFFFFF"&gt;&lt;A href="https://spider-solitaire.co" target="_self"&gt;spider solitaire&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;P&gt;Can I test clicking a button and going to the next screen?&lt;/P&gt;&lt;P&gt;I think this is impossible in integration testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;final signInText = find.text('signin');&lt;BR /&gt;expect(signInText, findsWidgets); // OK&lt;BR /&gt;final textField = find.byType(TextFormField);&lt;BR /&gt;await tester.enterText(textField.at(0), 'abc@gmail.com');&lt;BR /&gt;await tester.enterText(textField.at(1), '1234');&lt;BR /&gt;await tester.tap(find.byType(RaisedButton).first);&lt;BR /&gt;await tester.pump();&lt;BR /&gt;var indicator = find.byType(CircularProgressIndicator);&lt;BR /&gt;expect(indicator, findsOneWidget); // OK&lt;/P&gt;&lt;P&gt;// I have to wait 2-3 seconds for the login to complete.&lt;BR /&gt;sleep(Duration(seconds: 10));// FAIL&lt;BR /&gt;await Future.delayed(Duration(seconds: 10));// NEVER ENDING&lt;BR /&gt;await tester.pumpAndSettle();// TIMEOUT&lt;BR /&gt;expect('Next Screen Text', findsOneWidget);// NOT FOUND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If I call sleep or Future.dealeyed function, I can't wait 2-3 seconds and it fails.&lt;/P&gt;&lt;P&gt;I can't find any examples of testing login code.&lt;/P&gt;&lt;P&gt;Can I test moving to the next screen after waiting 2-3 seconds until login is done after clicking the button?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think people overvalue integration testing and should focus on building plenty of unit tests that allow deploying directly to production. An app that is extensively unit tested no longer relies on its current integration tests.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What guarantees do you need from integration testing? Is your integration environment realistic? Azar echatspin integration tests contribute how much to the least feasible lead time?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 15:50:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/login-in-integration-testing/m-p/81408#M51296</guid>
      <dc:creator>catfishgrate</dc:creator>
      <dc:date>2022-02-23T15:50:58Z</dc:date>
    </item>
  </channel>
</rss>

