DECLARE CURSOR C1 IS SELECT MAX(COLUMN_NAME1) AS HEADERID FROM TABLE_NAME WHERE CONDITIONS ; CURSOR C2 IS SELECT ID FROM TABLE_NAME WHERE CONDITIONS AND COLUMN_NAME1 IS NULL; L_MAX_HEADERID number; BEGIN OPEN C1; FETCH C1 INTO L_MAX_HEADERID; CLOSE C1; FOR R1 IN C2 LOOP L_MAX_HEADERID :=L_MAX_HEADERID+1; UPDATE TABLE_NAME SET COLUMN_NAME1=L_MAX_HEADERID WHERE ID=R1.ID; END LOOP; END;
Behavior Driven Development (BDD) is a development process that originally associated with Test-Driven Development (TDD). BDD is written in a readable format in an understandable language for anyone involved in software development. BDD Features Providing better readability and visibility. Verifying the software against customer requirements. Assure the implementation of the system is correct. Derives examples of different expected behaviors of the system. Uses examples as acceptance tests. Focus on customer requirements throughout the development. BDD Practice There are two practices in BDD:- Specification by Example (SbE). Test-Driven Development (TDD). Specification by example (SbE) uses examples in conversation to illustrate the business rules and the behavior of the software. This uses to have a better understanding for Business Analyst, Product Owners, Testers and the Developers to reduce the misunderstanding abou...
Comments
Post a Comment