Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Imagine you have a string variable that holds the sixteen digits MasterCard or Visa debit card number. Can you name one of the many ways to obtain string with last four digits during run time?

0
Posted

Imagine you have a string variable that holds the sixteen digits MasterCard or Visa debit card number. Can you name one of the many ways to obtain string with last four digits during run time?

0

The QA engineer may use multiple ways to get for testing purposes last four digits from sixteen digits string. Lets name for practical purpose variables name with credit card number as sMCnumber and result string as sResult. The following two lines of 4test code would return the same test result: sResult=Right (sMCnumber,4) sResult=Substr(sMCnumber,13,4) By the way I used one of the best practices to name string variables on 4test script.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123