Skip to content
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

Qa Scripts #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
dirName,fileName,Flag
Payments/CoreServices,ProcessPaymentTest,1
Payments/CoreServices,ProcessCreditTest,1
Payments/CoreServices,ProcessAuthorizationReversalTest,0
Payments/CoreServices,CapturePaymentTest,0
Payments/CoreServices,RefundCaptureTest,0
Payments/CoreServices,RefundPaymentTest,1
Payments/CoreServices,VoidCaptureTest,0
Payments/CoreServices,VoidCreditTest,0
Payments/CoreServices,VoidPaymentTest,0
Payments/CoreServices,VoidRefundTest,0
Payouts/CoreServices,ProcessPayoutTest,1
Flex/CoreServices,GenerateKeyTest,0
Flex/CoreServices,TokenizeCardTest,0
Flex,KeyGenerationNoEncTest,1
TMS/CoreServices,CreateInstrumentIdentifierTest,1
TMS/CoreServices,CreatePaymentInstrumentTest,0
TMS/CoreServices,RetrieveInstrumentIdentifierTest,0
TMS/CoreServices,RetrievePaymentInstrumentTest,0
TMS/CoreServices,RetrieveAllPaymentInstrumentsTest,0
TMS/CoreServices,UpdateInstrumentIdentifierTest,0
TMS/CoreServices,UpdatePaymentInstrumentTest,0
TMS/CoreServices,DeleteInstrumentIdentifierTest,0
TMS/CoreServices,DeletePaymentInstrumentTest,0
TMS/CoreServices,DeletePaymentInstrumentTest,0
TransactionBatches/CoreServices,GetIndividualBatchFileTest,0
TransactionBatches/CoreServices,GetListOfBatchFilesTest,0
TransactionDetails/CoreServices,RetrieveTransactionTest,0
TransactionSearch/CoreServices,CreateSearchRequestTest,0
TransactionSearch/CoreServices,GetSearchResultsTest,1
UserManagement/CoreServices,GetUserInformationTest,0
SecureFileShare/CoreServices,GetListOfFilesTest,0
SecureFileShare/CoreServices,DownloadFileWithFileIdentifierTest,0
Reporting/CoreServices,CreateAdhocReportTest,0
Reporting/CoreServices,CreateReportSubscriptionForReportNameByOrganizationTest,0
Reporting/CoreServices,DeleteSubscriptionOfReportNameByOrganizationTest,0
Reporting/CoreServices,DownloadReportTest,0
Reporting/CoreServices,GetAllSubscriptionsTest,0
Reporting/CoreServices,GetNotificationOfChangesTest,0
Reporting/CoreServices,GetPurchaseAndRefundDetailsTest,0
Reporting/CoreServices,GetReportBasedOnReportidTest,0
Reporting/CoreServices,GetReportDefinitionTest,0
Reporting/CoreServices,GetReportingResourceInformationTest,0
Reporting/CoreServices,GetSubscriptionForReportNameTest,0
Reporting/CoreServices,RetrieveAvailableReportsTest,0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,encryptionType,message
CKeyGen_01,RsaOaep256,Success
CKeyGen_02,PqaPabc255,Fails due to invalid encryptionType
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,keyId,message
CTokC_01,08lunaoHYjKAzbydtVLSJB24Ao39aNf1,Success
CTokC_02,0023154mudgshfyrtdgfj456fhdggdg1,Fails due to invalid keyId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,encryptionType,message
CKeyGenNE_01,None,Success
CKeyGenNE_02,SDMP,Fails due to invalid encryptionType
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,paymentId,amount,message
CACap_01,5495429490576774004003,102.21,Success
CACap_02,5440958242536325704002,102,Fails due to mismatch amount
CACap_03,1234567898765432123344,102.21,Fails due to invalid paymentId
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,amount,message
CACre_01,102.21,Success
CACre_02,100,Fails due to mismatch amount
CACre_03,GHTR25,Fails due to invalid amount
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,amount,message
CPAP_01,102.21,Success
CPAP_02,102,Fails due to mismatch amount
CPAP_03,GTR4,Fails due to invalid amount
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,paymentId,amount,message
CARev_01,5507422897256771003004,102.21,Success
CARev_02,5507423875116982403003,102,Fails due to mismatch amount
CARev_03,1234567899874561231790,102.21,Fails due to invalid paymentId
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,captureId,amount,message
RAC_01,5440961493586401004003,102.21,Success
RAC_02,5440961496736640504004,102,Fails due to mismatch amount
RAC_03,1234567898745632145698,BSL8,Fails due to invalid captureId
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,paymentId,amount,message
RAP_01,5441039154576979604004,102.21,Success
RAP_02,5441040074026145504005,102,Fails due to mismatch amount
RAP_03,1234567890123456789123,102.21,Fails due to invalid paymentId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,captureId,status,message
VAC_01,5441563648876440004001,VOIDED,Success
VAC_02,8964213433846812344644,VOIDED,Fails due to invalid captureId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,creditId,message
VAC_01,5508378826696729404006,Success
VAC_02,8964213433846812344644,Fails due to invalid creditId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,paymentId,status,message
VAP_01,5441562707056439504001,VOIDED,Success
VAP_02,8964213433846812344644,VOIDED,Fails due to invalid paymentId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,refundId,status,message
VAR_01,5441568951426815904006,VOIDED,Success
VAR_02,8964213433846812344644,VOIDED,Fails due to invalid refundId
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,cleintRefInfoCode,businessAppId,amount,message
CPay_01,33557799,FD,100.00,Success
CPay_02,12345,GD,200,Fails due to amount mismatch
CPay_03,6789,MD,DSWAZ1,Fails due to invalid amount
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,reportDefName,repName,reportSTime,reportETime,message
CAdR_01,TransactionRequestClass,V2_reportTestQA1,2018-09-01T12:00:00+05:00,2018-09-02T12:00:00+05:00,Success
CAdR_02,TransactionRequ,testrest_v2,2018-09-01T12:00:00+05:00,2018-09-02T12:00:00+05:00,fails due to invalid reportDefinitionName
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,reportDefName,repName,repFrequency,message
CRSFRNO_01,TransactionRequestClass,QA_test_reporting_org,WEEKLY,Success
CRSFRNO_02,TransactionRes,subscriptionAutomation2,DAILY,Fails due to invalid reportDefinitionName
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,repName,message
DSRNO_01,testrest_subcription_v1,Success
DSRNO_02,ghsrrawasbhfhcb,Fails due to invalid reportName
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,orgId,repName,repDate,message
DR_01,testrest,testrest_v2,2018-09-02,Success
DR_02,testrest,testre,2018-09-02,Fails due to invalid reportName
DR_03,testrest,testrest_v2,2018-08-02,Fails due to invalid reportDate
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
testCaseId,,message
GAS_01,Success
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,sTime,eTime,message
GNOC_01,2018-09-01T12:00:00-05:00,2018-09-30T12:00:00-05:00,Success
GNOC_02,2018-01T12:00-05,2018-09-30T12:00:00-05:00,Fails due to invalid startTime
GNOC_03,2018-09-01T12:00:00-05:00,2018-30T12:00-05,Fails due to invalid endTime
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
testCaseId,sTime,eTime,orgId,message
GPARD_01,2018-05-01T12:00:00-05:00,2018-05-30T12:00:00-05:00,uday_wf,Success
GPARD_02,2018-01T12:00-05,2018-05-30T12:00:00-05:00,uday_wf,Fails due to invalid startTime
GPARD_03,2018-05-01T12:00:00-05:00,2018-30T12:00-05,uday_wf,Fails due to invalid endTime
GPARD_04,2018-05-01T12:00:00-05:00,2018-05-30T12:00:00-05:00,udapaa,Fails due to invalid organizationId
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,orgId,repId,message
GRBRI_01,testrest,79642c43-2368-0cd5-e053-a2588e0a7b3c,Success
GRBRI_02,testrest,79642c43-2368-0cd5-e053-a2588e0a,Fails due to invalid reportId
GRBRI_03,bkalama,79642c43-2368-0cd5-e053-a2588e0a7b3c,Fails due to invalid organizationId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,reportDefName,message
GRD_01,SubscriptionDetailClass,Success
GRD_02,SubscDetail,Fails due to invalid reportDefinitionName
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,orgId,message
GRRI_01,testrest,Success
GRRI_02,bplkmdghd,Fails due to invalid organizationId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,repName,message
GSFRN_01,QA_test_reporting_org,Success
GSFRN_02,bplkmdgsd,Fails due to invalid reportName
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,sTime,eTime,tQueryType,message
RAR_01,2018-10-02T00:00:00.0Z,2018-10-30T23:59:59.0Z,executedTime,Success
RAR_02,2018-09-01T00:00:00.TZ,2018-09-05T23:59:59.0Z,executedTime,Fails due to invalid startTime
RAR_03,2018-09-01T00:00:00.0Z,2018-09-05T23:59:59.TZ,executedTime,Fails due to invalid endTime
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,organizationId,fileId,message
DFWFI_01,testrest,VFJSUmVwb3J0LTc4NTVkMTNmLTkzOTgtNTExMy1lMDUzLWEyNTg4ZTBhNzE5Mi5jc3YtMjAxOC0xMC0yMA==,Success
DFWFI_02,testrest,VFJSUmVwb3J0LTc4NTVkMTNmLTkzOTgtNTExMy1lMDUzLWEyNTg4ZTBhNzE5Mi5jc3YtMjAxOC0,Fails due to invalid fieldId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,organizationId,startDate,endDate,message
GLF_01,testrest,2018-10-20,2018-10-30,Success
GLF_02,test,2018-10-20,2018-10-30,invalid organizationId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,prevTransactionId,profileId,message
CInstIden_01,123456789012345,93B32398-AD51-4CC2-A682-EA3E93614EB1,Success
CInstIden_02,123456789012345,25C32588-CD49-6SS3-H123-WQ7T83512NMl,Fails due to invalid profileId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,profileId,message
CPIns_01,93B32398-AD51-4CC2-A682-EA3E93614EB1,Success
CPIns_02,25C32588-CD49-6SS3-H123-WQ7T83512NMl,Fails due to invalid profileId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,profileId,tokenId,message
RemInsIden_01,93B32398-AD51-4CC2-A682-EA3E93614EB1,7010000000004750123,Success
RemInsIden_02,93B32398-AD51-4CC2-A682-EA3E93614EB1,7654264589567855546,Fails due to invalid tokenId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,profileId,tokenId,message
RemPIns_01,93B32398-AD51-4CC2-A682-EA3E93614EB1,815D2A76BD28F785E05341588E0AD705,Success
RemPIns_02,93B32398-AD51-4CC2-A682-EA3E93614EB1,7654264589567855546,Fails due to invalid tokenId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,profileId,tokenId,message
RAPIdenGInsIden_01,93B32398-AD51-4CC2-A682-EA3E93614EB1,7010000000004750123,Success
RAPIdenGInsIden_02,93B32398-AD51-4CC2-A682-EA3E93614EB1,7654264589567855546,Fails due to invalid tokenId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,profileId,tokenId,message
RInsIden_01,93B32398-AD51-4CC2-A682-EA3E93614EB1,7010000000004750123,Success
RInsIden_02,93B32398-AD51-4CC2-A682-EA3E93614EB1,7654264589567855546,Fails due to invalid tokenId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,profileId,tokenId,message
RPIden_01,93B32398-AD51-4CC2-A682-EA3E93614EB1,815D5F887A9223A7E05341588E0A2D3A,Success
RPIden_02,93B32398-AD51-4CC2-A682-EA3E93614EB1,7654264589567855546,Fails due to invalid tokenId
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,profileId,tokenId,message
UpdInsIden_01,93B32398-AD51-4CC2-A682-EA3E93614EB1,7010000000004750123,Success
UpdInsIden_02,93B32398-AD51-4CC2-A682-EA3E93614EB1,70200000000001376465,Success
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,profileId,tokenId,message
UpdPIden_01,93B32398-AD51-4CC2-A682-EA3E93614EB1,815D5F887A9223A7E05341588E0A2D3A,Success
UpdPIden_02,93B32398-AD51-4CC2-A682-EA3E93614EB1,7501E647FA683692E05340588D0A131D677ef,Success
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
TestCaseId,APIName,Status,Message,TimeStamp
CPAP_01,ProcessPayment,Pass:201-5511756285216380104005,Success,2019-02-26T15:37:08+05:30
CPAP_02,ProcessPayment,Assertion Failed:201,Fails due to mismatch amount,2019-02-26T15:37:09+05:30
CPAP_03,ProcessPayment,Fail:400,Declined - One or more fields in the request contains invalid data,2019-02-26T15:37:09+05:30
CACre_01,ProcessCredit,Pass:201-5511756301216511204003,Success,2019-02-26T15:37:10+05:30
CACre_02,ProcessCredit,Assertion Failed:201,Fails due to mismatch amount,2019-02-26T15:37:10+05:30
CACre_03,ProcessCredit,Fail:400,Declined - One or more fields in the request contains invalid data,2019-02-26T15:37:10+05:30
RAP_01,RefundPayment,Pass:201-5511756310746511304003,Success,2019-02-26T15:37:11+05:30
RAP_02,RefundPayment,Assertion Failed:201,Fails due to mismatch amount,2019-02-26T15:37:11+05:30
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,id,message
GIBF_01,Owcyk6pl,Success
GIBF_02,CYBS123,Fails due to invalid Id
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testCaseId,startTime,endTime,message
GLOF_01,2018-10-01T00:00:00.00Z,2018-10-31T23:59:59.59Z,Success
GLOF_02,2018-10-01T00:00,2018-10-31T23:59:59.59Z,Fails due to invalid startDate.
GLOF_03,2018-10-01T00:00:00.00Z,2018-10-31T23:59,Fails due to invalid endDate.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,id,message
RT_01,5408386919326811103004,Success
RT_02,1234567898745651235454,Fails due to invalid Id
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,name,query,message
CSR_01,TSS search,clientReferenceInformation.code:12345,Success
CSR_02,TSS search,clientRefeInfo.code:52465,Fails due to invalid query.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,id,message
GSR_01,93adaa7b-9145-4b90-84cc-166e2d87a70f,Success
GSR_02,93adaa7b-457667-4b90-bgh-daert,Fails due to invalid Id
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
testCaseId,orgId,userName,permissionId,roleId,message
GUI_01,testrest,tesrest,CustomerProfileViewPermission,admin,Success
GUI_02,testre,tesrest,CustomerProfileViewPermission,admin,Fail due to invalid organizationId
22 changes: 22 additions & 0 deletions spec/cybersource-rest-qa-ruby/QaScripts/ConstantUtility.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class ConstantUtility
STATUS_AUTHORIZED = 'AUTHORIZED' unless const_defined?(:STATUS_AUTHORIZED)
MESSAGE_AUTHORIZE = 'Assertion Failed since Status is UNAUTHORIZED' unless const_defined?(:MESSAGE_AUTHORIZE)

STATUS_PENDING = 'PENDING' unless const_defined?(:STATUS_PENDING)
MESSAGE_PENDING = 'Assertion Failed since Status is not PENDING' unless const_defined?(:MESSAGE_PENDING)

STATUS_REVERSED = 'REVERSED' unless const_defined?(:STATUS_REVERSED)
MESSAGE_REVERSED = 'Assertion Failed since Status is not REVERSED' unless const_defined?(:MESSAGE_REVERSED)

STATUS_VOIDED = 'VOIDED' unless const_defined?(:STATUS_VOIDED)
MESSAGE_VOIDED = 'Assertion Failed since Status is not VOIDED' unless const_defined?(:MESSAGE_VOIDED)

STATUS_ACCEPTED = 'ACCEPTED' unless const_defined?(:STATUS_ACCEPTED)
MESSAGE_ACCEPTED = 'Assertion Failed since Status is not ACCEPTED' unless const_defined?(:MESSAGE_ACCEPTED)

STATE_ACTIVE = 'ACTIVE' unless const_defined?(:STATE_ACTIVE)
MESSAGE_ACTIVE = 'Assertion Failed since Status is not ACTIVE' unless const_defined?(:MESSAGE_ACTIVE)

MESSAGE_RESPONSE_CODE = 'Assertion Failed in Response code validation' unless const_defined?(:MESSAGE_RESPONSE_CODE)
MESSAGE_NULL_ID = 'Assertion Failed since Payment ID is null' unless const_defined?(:MESSAGE_NULL_ID)
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
require 'cybersource_rest_client'
require_relative '../../../data/Configuration.rb'
require_relative '../../ConstantUtility.rb'

# * This is a sample code to call KeyGenerationApi,
# * Generate Key - with Encryption Type
# * GeneratePublickey method will create a new Public Key and Key ID
public
class Generatekey
def main
config = MerchantConfiguration.new.merchantConfigProp()
request = CyberSource::KeyParameters.new
api_client = CyberSource::ApiClient.new
api_instance = CyberSource::KeyGenerationApi.new(api_client, config)

#Reading from input CSV file--
csv_text = File.read("QaScripts\\CSV_Files\\Flex\\CoreServices\\CreateKeyGeneration.csv")
csv = CSV.parse(csv_text, :headers => true)
csv.each do |row|

request.encryption_type = row[1]
options = {}
options[:'generate_public_key_request'] = request
begin
response_body , response_code, response_headers = api_instance.generate_public_key(options)
resp = JSON.parse(response_body)
#Writing to output CSV file
CSV.open("QaScripts\\CSV_Files\\TestReport\\TestResults.csv", "a+") do |writeToCSV|
if response_code != nil
writeToCSV << [row[0], 'GenerateKey', 'Pass:' + response_code.to_s, row[2], DateTime.now]
elsif resp['keyId'] == nil
writeToCSV << [row[0], 'GenerateKey', 'Assertion Failed:' + response_code.to_s, ConstantUtility::MESSAGE_NULL_ID, DateTime.now]
else
writeToCSV << [row[0], 'GenerateKey', 'Assertion Failed:' + response_code.to_s, row[2], DateTime.now]
end
end
rescue StandardError => err
if err.response_body != nil
resp = JSON.parse(err.response_body)
#Writing to output CSV file
CSV.open("QaScripts\\CSV_Files\\TestReport\\TestResults.csv", "a+") do |writeToCSV|
writeToCSV << [row[0], 'GenerateKey', 'Fail:' + err.code.to_s, row[2], DateTime.now]
end
else
puts err
end
end
end
end
Generatekey.new.main
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
require 'cybersource_rest_client'
require_relative '../VerifyTokenTest.rb'
require_relative '../../../data/Configuration.rb'

# * This is a sample code to call Tokenization Api which will return key and
# * TokenizationApi Returns a token representing the supplied card details.
# * to verify the token with the key generated.

public
class TokenizeCard
def main
config = MerchantConfiguration.new.merchantConfigProp()
request = CyberSource::TokenizeRequest.new
api_client = CyberSource::ApiClient.new
api_instance = CyberSource::FlexTokenApi.new(api_client, config)

card_info = CyberSource::Flexv1tokensCardInfo.new
card_info.card_number = "5555555555554444"
card_info.card_expiration_month = "03"
card_info.card_expiration_year = "2031"
card_info.card_type = "002"
request.card_info = card_info

#Reading from input CSV file--
csv_text = File.read("QaScripts\\CSV_Files\\Flex\\CoreServices\\CreateTokenizeCard.csv")
csv = CSV.parse(csv_text, :headers => true)
csv.each do |row|
request.key_id = row[1]
options = {}
options[:'tokenize_request'] = request
begin
response_body, response_code, response_headers = api_instance.tokenize(options)
resp = JSON.parse(response_body)
#Writing to output CSV file
CSV.open("QaScripts\\CSV_Files\\TestReport\\TestResults.csv", "a+") do |writeToCSV|
if response_code != nil
writeToCSV << [row[0], 'TokenizeCard', 'Pass:' + response_code.to_s, row[2], DateTime.now]
elsif resp['keyId'] == nil
writeToCSV << [row[0], 'TokenizeCard', 'Assertion Failed:' + response_code.to_s, ConstantUtility::MESSAGE_NULL_ID, DateTime.now]
else
writeToCSV << [row[0], 'TokenizeCard', 'Assertion Failed:' + response_code.to_s, row[2], DateTime.now]
end
end
rescue StandardError => err
if err.response_body != nil
resp = JSON.parse(err.response_body)
#Writing to output CSV file
CSV.open("QaScripts\\CSV_Files\\TestReport\\TestResults.csv", "a+") do |writeToCSV|
writeToCSV << [row[0], 'TokenizeCard','Fail:' + err.code.to_s, resp['responseStatus']['message'], DateTime.now]
end
else
puts err
end
end
end
end
TokenizeCard.new.main
end
Loading