How to execute two testng methods sequentially when each of the test methods is parameterized? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!How can iterate the test suites in the TestNGExecuting multiple test sequentially with different parameters testnghow to pass parameter from @Test method in 1 class file to a annotated method in another class file(testNG)Execute a task in TestNG when testng-result.xml file is generatedTestNG execution by methods as well as groupsHow to run multiple test cases in testng with different set of test data from excel file?Executing keyword based Excel sheet test case as TestNG test case using seleniumHow to execute testng test cases with shared webdriver?Issues in order of execution of tests in TestNGtestNG suite tag timestamp differs with test-method timestamp in testng-results.xml
Why is it faster to reheat something than it is to cook it?
Tannaka duality for semisimple groups
What would you call this weird metallic apparatus that allows you to lift people?
Did any compiler fully use 80-bit floating point?
What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?
Project Euler #1 in C++
How to identify unknown coordinate type and convert to lat/lon?
Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?
Do I really need to have a message in a novel to appeal to readers?
Why are vacuum tubes still used in amateur radios?
An adverb for when you're not exaggerating
Is there hard evidence that the grant peer review system performs significantly better than random?
Putting class ranking in CV, but against dept guidelines
How to compare two different files line by line in unix?
What does Turing mean by this statement?
Electrolysis of water: Which equations to use? (IB Chem)
What is the meaning of 'breadth' in breadth first search?
Is it possible for SQL statements to execute concurrently within a single session in SQL Server?
Lagrange four-squares theorem --- deterministic complexity
macOS: Name for app shortcut screen found by pinching with thumb and three fingers
Semigroups with no morphisms between them
Random body shuffle every night—can we still function?
Is it fair for a professor to grade us on the possession of past papers?
Co-worker has annoying ringtone
How to execute two testng methods sequentially when each of the test methods is parameterized?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!How can iterate the test suites in the TestNGExecuting multiple test sequentially with different parameters testnghow to pass parameter from @Test method in 1 class file to a annotated method in another class file(testNG)Execute a task in TestNG when testng-result.xml file is generatedTestNG execution by methods as well as groupsHow to run multiple test cases in testng with different set of test data from excel file?Executing keyword based Excel sheet test case as TestNG test case using seleniumHow to execute testng test cases with shared webdriver?Issues in order of execution of tests in TestNGtestNG suite tag timestamp differs with test-method timestamp in testng-results.xml
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am designing a TESTNG framework for my project and below is my requirement
- Submit a Credit App is one test case which is data driven to submit 10 credit apps
- Generate contracts from Credit App submitted from point 1 which is again data driven to generate 10 contracts from the credit apps submitted
I want my framework to submit one credit app and use the generated app number to generate contract in second step. Data records for submitting credit apps and generating contracts are in different excel sheets, now how can I make my framework to execute test method to submit credit app and execute test method to generate contract 10 times. I do not want my framework to first complete submitting 10 credit apps and then generate 10 contracts from the credit apps submitted. I want both the test methods to run in sequence without having the data records in same excel sheet.
java selenium-webdriver testng
add a comment |
I am designing a TESTNG framework for my project and below is my requirement
- Submit a Credit App is one test case which is data driven to submit 10 credit apps
- Generate contracts from Credit App submitted from point 1 which is again data driven to generate 10 contracts from the credit apps submitted
I want my framework to submit one credit app and use the generated app number to generate contract in second step. Data records for submitting credit apps and generating contracts are in different excel sheets, now how can I make my framework to execute test method to submit credit app and execute test method to generate contract 10 times. I do not want my framework to first complete submitting 10 credit apps and then generate 10 contracts from the credit apps submitted. I want both the test methods to run in sequence without having the data records in same excel sheet.
java selenium-webdriver testng
1
Can you please show us what you have as code so far and where you are stuck ?
– Krishnan Mahadevan
Mar 10 at 12:59
add a comment |
I am designing a TESTNG framework for my project and below is my requirement
- Submit a Credit App is one test case which is data driven to submit 10 credit apps
- Generate contracts from Credit App submitted from point 1 which is again data driven to generate 10 contracts from the credit apps submitted
I want my framework to submit one credit app and use the generated app number to generate contract in second step. Data records for submitting credit apps and generating contracts are in different excel sheets, now how can I make my framework to execute test method to submit credit app and execute test method to generate contract 10 times. I do not want my framework to first complete submitting 10 credit apps and then generate 10 contracts from the credit apps submitted. I want both the test methods to run in sequence without having the data records in same excel sheet.
java selenium-webdriver testng
I am designing a TESTNG framework for my project and below is my requirement
- Submit a Credit App is one test case which is data driven to submit 10 credit apps
- Generate contracts from Credit App submitted from point 1 which is again data driven to generate 10 contracts from the credit apps submitted
I want my framework to submit one credit app and use the generated app number to generate contract in second step. Data records for submitting credit apps and generating contracts are in different excel sheets, now how can I make my framework to execute test method to submit credit app and execute test method to generate contract 10 times. I do not want my framework to first complete submitting 10 credit apps and then generate 10 contracts from the credit apps submitted. I want both the test methods to run in sequence without having the data records in same excel sheet.
java selenium-webdriver testng
java selenium-webdriver testng
asked Mar 8 at 21:48
Srinivasan RamuSrinivasan Ramu
3932614
3932614
1
Can you please show us what you have as code so far and where you are stuck ?
– Krishnan Mahadevan
Mar 10 at 12:59
add a comment |
1
Can you please show us what you have as code so far and where you are stuck ?
– Krishnan Mahadevan
Mar 10 at 12:59
1
1
Can you please show us what you have as code so far and where you are stuck ?
– Krishnan Mahadevan
Mar 10 at 12:59
Can you please show us what you have as code so far and where you are stuck ?
– Krishnan Mahadevan
Mar 10 at 12:59
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071464%2fhow-to-execute-two-testng-methods-sequentially-when-each-of-the-test-methods-is%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071464%2fhow-to-execute-two-testng-methods-sequentially-when-each-of-the-test-methods-is%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Can you please show us what you have as code so far and where you are stuck ?
– Krishnan Mahadevan
Mar 10 at 12:59