This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xpto xpto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void TesteErroComum() | |
{ | |
string[] dadosTeste = {"37975888", "30350150", "30380120", "30360175", "30210150"}; | |
for (int i = 0; i < 5; i++) | |
{ | |
preencherCEP(dadosTeste[i]); | |
//Click, SendKeys... | |
//Click, SendKeys... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name | Telephone | |
---|---|---|
Irene J. Hunt | 3022694414 | |
Michael D. Young | 8056736694 | |
Andrew G. Jordan | 3018291606 | |
Bryan J. Gabriel | 2547151195 | |
Deborah J. Norman | 3257436174 | |
Paul K. Boyd | 6316959735 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static List<TestCaseData> ReturnNameTelephone_CSV | |
{ | |
get | |
{ | |
var testCases = new List<TestCaseData>(); | |
using (var fs = File.OpenRead(GeneralHelpers.GetProjectPath() + @"\DataDriven\Files\NameTelephone.csv")) | |
using (var sr = new StreamReader(fs)) | |
{ | |
string headerLine = sr.ReadLine(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestCaseSource(typeof(DataDrivenHelpers),"ReturnNameTelephone_CSV")] | |
public void UsingCSVSource(string name, string telephoneNumber) | |
{ | |
//some acts on the website using the "name" parameter | |
//some acts on the website using the "telephoneNumber" parameter | |
Assert.Pass(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Data.OleDb; | |
using System.IO; | |
using NUnit.Framework; | |
public class ExcelHelpers | |
{ | |
//Install x64: Microsoft Access Database Engine 2010 Redistributable - https://www.microsoft.com/en-us/download/details.aspx?id=13255 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IEnumerable<TestCaseData> ReturnNameTelephone_XLSX | |
{ | |
get | |
{ | |
var testCases = new List<TestCaseData>(); | |
testCases = new ExcelReader().ReadExcelData(GeneralHelpers.GetProjectPath() + @"\DataDriven\Files\NameTelephone.xlsx"); | |
if (testCases != null) | |
foreach (TestCaseData testCaseData in testCases) | |
yield return testCaseData; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestCase("Irene J. Hunt","3022694414")] | |
[TestCase("Michael D. Young","8056736694")] | |
[TestCase("Andrew G. Jordan","3018291606")] | |
[TestCase("Bryan J. Gabriel","2547151195")] | |
[TestCase("Deborah J. Norman","3257436174")] | |
[TestCase("Paul K. Boyd","6316959735")] | |
public void UsingTestCase1(string name, string telephoneNumber) | |
{ | |
//some acts on the website using the "name" parameter | |
//some acts on the website using the "telephoneNumber" parameter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestCaseSource(typeof(DataDrivenHelpers),"ReturnNameTelephone_XLSX")] | |
public void UsingXLSXSource(string name, string telephoneNumber) | |
{ | |
//some acts in website using "name" variable | |
//some acts in website using "telephoneNumber" variable | |
Assert.Pass(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
using NUnit.Framework; | |
using RestSharp; | |
namespace DataDriven_NetCore_NUnit | |
{ | |
public class APIHelpers | |
{ |
OlderNewer