Saturday, June 9, 2012
Sunday, March 4, 2012
Database Procedure (For Bank application) to create Records for test environment.
CREATE PROCEDURE [dbo].[SP_InsertTestData]
AS
BEGIN
SET NOCOUNT ON
SET XACT_ABORT ON
INSERT INTO [User] ([UserName], [Password], [Email], [Role], [DisplayName], [Verified]) VALUES ('RAHUL','RAHUL','dummy@domain.ext','SystemIntegrator','RAHUL', 1)
INSERT INTO dbo.[CARDCONTROL]( [Name], [EmailForAlerts], SystemIntegratorId) VALUES ( 'My First CARDCONTROL', 'RAHUL_test@serverTT2.com', (Select Id from [dbo].[User] where UserName = 'RAHUL' ));
INSERT INTO dbo.GOLDCARDCONTROL( Name, Serial, [Type], CARDControlnumber, ChipId, MaximumCARDControlLimit, BranchID) VALUES ( 'TestUser 1', '1178189980', 'STANDARDCHARTEDGBP', '321082.50.107', 9600, 2.0, (Select Id from dbo.Logins where NAME='Securelogins'));
INSERT INTO dbo.GOLDCARDCONTROL( Name, Serial, [Type], CARDControlnumber, ChipId, MaximumCARDControlLimit, BranchID) VALUES ( 'TestUser 2', '1178189981', 'STANDARDCHARTEDGBP', '321082.50.107', 9600, 2.0, (Select Id from dbo.Logins where NAME='Securelogins2'));
INSERT INTO dbo.GOLDCARDCONTROL( Name, Serial, [Type], CARDControlnumber, ChipId, MaximumCARDControlLimit, BranchID) VALUES ( 'TestUser 3', '1178189982', 'STANDARDCHARTEDGBP', '321082.50.107', 9600, 2.0, (Select Id from dbo.Logins where NAME='Securelogins3'));
INSERT INTO dbo.GOLDCARDCONTROL( Name, Serial, [Type], CARDControlnumber, ChipId, MaximumCARDControlLimit, BranchID) VALUES ( 'TestUser 4', '1178189983', 'STANDARDCHARTEDGBP', '321082.50.107', 9600, 2.0, (Select Id from dbo.Logins where NAME='Securelogins4'));
INSERT INTO dbo.GOLDCARDCONTROL( Name, Serial, [Type], CARDControlnumber, ChipId, MaximumCARDControlLimit, BranchID) VALUES ( 'TestUser 5', '1178189984', 'STANDARDCHARTEDGBP', '321082.50.107', 9600, 2.0, (Select Id from dbo.Logins where NAME='Securelogins5'));
INSERT INTO dbo.GOLDCARDCONTROL( Name, Serial, [Type], CARDControlnumber, ChipId, MaximumCARDControlLimit, BranchID) VALUES ( 'TestUser 6', '1234560', 'STANDARDCHARTEDGBP', '321082.50.107', 9600, 2.0, (Select Id from dbo.Logins where NAME='Securelogins6'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (1, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189980'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (2, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189980'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (3, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189980'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (4, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189980'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (1, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189981'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (2, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189981'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (3, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189981'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (4, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189981'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (1, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189982'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (2, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189982'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (3, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189982'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (4, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189982'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (1, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189983'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (2, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189983'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (3, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189983'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (4, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189983'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (1, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189984'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (2, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189984'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (3, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189984'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (4, (Select Id from dbo.GOLDCARDCONTROL where Serial='1178189984'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (1, (Select Id from dbo.GOLDCARDCONTROL where Serial='1234560'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (2, (Select Id from dbo.GOLDCARDCONTROL where Serial='1234560'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (3, (Select Id from dbo.GOLDCARDCONTROL where Serial='1234560'));
INSERT INTO dbo.SAVINGSACCOUNT([Sequence], GOLDCARDCONTROLId) VALUES (4, (Select Id from dbo.GOLDCARDCONTROL where Serial='1234560'));
END
Subscribe to:
Posts (Atom)
Json extractor and While loop
Waiting for a specific value in response of api request. using while loop. Add a While Loop. The api requets will be executed inside th...
-
CASE: There are many times situations where you have to switch between login accounts to execute a Test scenario. If the application is u...
-
Sand box for collecting user stories. here in image below you see the user stories defined after meeting with team. Product owner can v...
-
Images can be recieved in responses. these responses can be further saved into a file on hard disk.